From 91fedab2f6fe07a219882d055571d17ddbcce0ab Mon Sep 17 00:00:00 2001 From: Jordan Blasenhauer Date: Sun, 11 Aug 2024 18:31:51 +0200 Subject: [PATCH] add switch component logic with displayStore *add a display store that will store a groupname and the value of the current component id to display + utils to update, this will allow to hide or show components after actions and this will work with a tabs component * add and watch the display store logic on container or layout --- .../dashboard/components/Widget/Container.vue | 30 ++++++++++++- .../dashboard/components/Widget/Grid.vue | 33 +++++++++++++- .../components/Widget/GridLayout.vue | 29 ++++++++++++- src/ui/client/dashboard/store/global.js | 43 +++++++++++++++++-- 4 files changed, 127 insertions(+), 8 deletions(-) diff --git a/src/ui/client/dashboard/components/Widget/Container.vue b/src/ui/client/dashboard/components/Widget/Container.vue index 1bb3ae4e7..856cbdd47 100644 --- a/src/ui/client/dashboard/components/Widget/Container.vue +++ b/src/ui/client/dashboard/components/Widget/Container.vue @@ -1,6 +1,6 @@ diff --git a/src/ui/client/dashboard/components/Widget/GridLayout.vue b/src/ui/client/dashboard/components/Widget/GridLayout.vue index 2ae704fea..515aca62c 100644 --- a/src/ui/client/dashboard/components/Widget/GridLayout.vue +++ b/src/ui/client/dashboard/components/Widget/GridLayout.vue @@ -1,7 +1,8 @@