Quellcode durchsuchen

feature: Hide actions in sidebar if it is empty

jamesread vor 2 Jahren
Ursprung
Commit
42535feadf
2 geänderte Dateien mit 30 neuen und 2 gelöschten Zeilen
  1. 28 0
      integration-tests/configs/onlyDashboards/config.yaml
  2. 2 2
      webui.dev/index.html

+ 28 - 0
integration-tests/configs/onlyDashboards/config.yaml

@@ -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

+ 2 - 2
webui.dev/index.html

@@ -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>