feature: Hide actions in sidebar if it is empty

This commit is contained in:
jamesread 2024-02-23 22:43:52 +00:00
parent baa690ffc2
commit 42535feadf
2 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,28 @@
#
# Integration Test Config: General
#
listenAddressSingleHTTPFrontend: 0.0.0.0:1337
logLevel: "DEBUG"
checkForUpdates: false
actions:
- title: action1
shell: date
icon: clock
- title: action2
shell: date
icon: clock
- title: action3
shell: date
icon: clock
dashboards:
- title: My Dashboard
contents:
- title: action1
- title: action2
- title: action3

View File

@ -27,11 +27,11 @@
<input type = "checkbox" id = "hide-sidebar-checkbox" hidden checked />
<nav hidden>
<ul id = "navigation-links">
<li><a id = "showActions">Actions</a></li>
<li title = "Actions"><a id = "showActions">Actions</a></li>
</ul>
<ul id = "supplemental-links">
<li><a id = "showLogs">Logs</a></li>
<li title = "Logs"><a id = "showLogs">Logs</a></li>
</ul>
</nav>