Skip to content

Commit

Permalink
Merge pull request #19779 from phillip-kruger/dev-ui-card-issue3
Browse files Browse the repository at this point in the history
Show Dev UI Tile even if there is no Guide
  • Loading branch information
gsmet authored Aug 31, 2021
2 parents 690e19e + 979d0c7 commit fadbcf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> data = new HashMap<>();
data.putAll(globalData);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{#if it.metadata?? && !it.metadata.unlisted??}
<div class="col mb-4">
<div class="card h-100">
<div class="card-header guide-padding-right">
Expand Down Expand Up @@ -31,5 +30,4 @@
</div>
{/if}
</div>
</div>
{/if}
</div>

0 comments on commit fadbcf3

Please sign in to comment.