diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsole.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsole.java index e251597a536a1..b7942c1ddd55b 100644 --- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsole.java +++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsole.java @@ -175,9 +175,11 @@ public void sendMainPage(RoutingContext event) { Template simpleTemplate = engine.getTemplate(namespace + "/embedded.html"); boolean hasConsoleEntry = simpleTemplate != null; boolean hasGuide = metadata.containsKey("guide"); + boolean isUnlisted = metadata.containsKey("unlisted") + && (metadata.get("unlisted").equals(true) || metadata.get("unlisted").equals("true")); loaded.put("hasConsoleEntry", hasConsoleEntry); loaded.put("hasGuide", hasGuide); - if (hasConsoleEntry || hasGuide) { + if (!isUnlisted) { if (hasConsoleEntry) { Map data = new HashMap<>(); data.putAll(globalData); diff --git a/extensions/vertx-http/deployment/src/main/resources/dev-templates/tags/nonActionableExtension.html b/extensions/vertx-http/deployment/src/main/resources/dev-templates/tags/nonActionableExtension.html index 46f101d8d5426..739970bd2bca7 100644 --- a/extensions/vertx-http/deployment/src/main/resources/dev-templates/tags/nonActionableExtension.html +++ b/extensions/vertx-http/deployment/src/main/resources/dev-templates/tags/nonActionableExtension.html @@ -1,4 +1,3 @@ -{#if it.metadata?? && !it.metadata.unlisted??}
@@ -31,5 +30,4 @@
{/if}
-
-{/if} \ No newline at end of file + \ No newline at end of file