From 42535feadf67223de7611efeef361dceaccbc2f1 Mon Sep 17 00:00:00 2001 From: jamesread Date: Fri, 23 Feb 2024 22:43:52 +0000 Subject: [PATCH] feature: Hide actions in sidebar if it is empty --- .../configs/onlyDashboards/config.yaml | 28 +++++++++++++++++++ webui.dev/index.html | 4 +-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 integration-tests/configs/onlyDashboards/config.yaml diff --git a/integration-tests/configs/onlyDashboards/config.yaml b/integration-tests/configs/onlyDashboards/config.yaml new file mode 100644 index 0000000..bab03ad --- /dev/null +++ b/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 diff --git a/webui.dev/index.html b/webui.dev/index.html index 53b68a4..6f2527c 100644 --- a/webui.dev/index.html +++ b/webui.dev/index.html @@ -27,11 +27,11 @@