From d1236895f557e1b92656ef68c3218e79326a92c2 Mon Sep 17 00:00:00 2001 From: Peter Olu Date: Sat, 23 Apr 2022 14:33:16 +0100 Subject: [PATCH] added a setview action and fullview mode to store --- src/store/modules/dashboard.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 93df9a64..bd36156e 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -38,6 +38,7 @@ interface DashboardState { durationTime: Duration; selectorStore: any; showTopology: boolean; + fullView: boolean; currentTabItems: LayoutConfig[]; dashboards: DashboardItem[]; currentDashboard: Nullable; @@ -56,6 +57,7 @@ export const dashboardStore = defineStore({ durationTime: useAppStoreWithOut().durationTime, selectorStore: useSelectorStore(), showTopology: false, + fullView: false, currentTabItems: [], dashboards: [], currentDashboard: null, @@ -68,6 +70,9 @@ export const dashboardStore = defineStore({ setMode(mode: boolean) { this.editMode = mode; }, + setViewMode(mode: boolean) { + this.fullView = mode; + }, resetDashboards(list: DashboardItem[]) { this.dashboards = list; sessionStorage.setItem("dashboards", JSON.stringify(list));