From 979d0c7730d77216309328249c671e24f2d708c1 Mon Sep 17 00:00:00 2001 From: Phillip Kruger Date: Mon, 30 Aug 2021 15:38:39 +0200 Subject: [PATCH] Show Dev UI Tile even if there is no Guide. Signed-off-by:Phillip Kruger --- .../vertx/http/deployment/devmode/console/DevConsole.java | 4 +++- .../resources/dev-templates/tags/nonActionableExtension.html | 4 +--- 2 files changed, 4 insertions(+), 4 deletions(-) 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