jamesnetherton commented on code in PR #8913:
URL: https://github.com/apache/camel-quarkus/pull/8913#discussion_r3644379953
##########
extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/devui/CamelCoreDevConsoleProcessor.java:
##########
@@ -35,47 +44,58 @@ void createDevUICards(BuildProducer<CardPageBuildItem>
cardsProducer) {
cardPageBuildItem.addPage(Page.webComponentPageBuilder()
.title("Blocked Exchanges")
.icon("font-awesome-solid:circle-xmark")
- .componentLink("qwc-camel-core-blocked-exchanges.js"));
+ .componentLink("qwc-camel-core-blocked-exchanges.js")
+ .metadata(CamelDevUIConstants.CONSOLE_ID_METADATA_KEY,
"blocked"));
cardPageBuildItem.addPage(Page.webComponentPageBuilder()
.title("Browse")
.icon("font-awesome-solid:magnifying-glass")
- .componentLink("qwc-camel-core-browse.js"));
+ .componentLink("qwc-camel-core-browse.js")
+ .metadata(CamelDevUIConstants.CONSOLE_ID_METADATA_KEY,
"browse")
+ .metadata(CamelDevUIConstants.ALLOWED_OPTIONS_METADATA_KEY,
"dump=false"));
Review Comment:
It is [hard
coded](https://github.com/apache/camel-quarkus/blob/a86a69f626dfd98e062945af55136680e6e1aab3/extensions-core/core/deployment/src/main/resources/dev-ui/qwc-camel-core-browse.js#L32)
in `qwc-camel-core-browse.js`.
The purpose of `ALLOWED_OPTIONS_METADATA_KEY` is to prevent an external
entity from providing different values (e.g `true`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]