replaced missing topology

This commit is contained in:
Peter Olu 2022-05-12 11:46:46 +01:00
parent a590b33cda
commit 08ecb7b491

View File

@ -37,6 +37,7 @@ interface DashboardState {
activedGridItem: string; activedGridItem: string;
durationTime: Duration; durationTime: Duration;
selectorStore: any; selectorStore: any;
showTopology: boolean;
fullView: boolean; fullView: boolean;
currentTabItems: LayoutConfig[]; currentTabItems: LayoutConfig[];
showTraceTools: boolean; showTraceTools: boolean;
@ -57,6 +58,7 @@ export const dashboardStore = defineStore({
activedGridItem: "", activedGridItem: "",
durationTime: useAppStoreWithOut().durationTime, durationTime: useAppStoreWithOut().durationTime,
selectorStore: useSelectorStore(), selectorStore: useSelectorStore(),
showTopology: false,
showLogTools: false, showLogTools: false,
showTraceTools: false, showTraceTools: false,
fullView: false, fullView: false,
@ -268,6 +270,9 @@ export const dashboardStore = defineStore({
setLogTools(show: boolean) { setLogTools(show: boolean) {
this.showLogTools = show; this.showLogTools = show;
}, },
setTopology(show: boolean) {
this.showTopology = show;
},
setConfigs(param: { [key: string]: unknown }) { setConfigs(param: { [key: string]: unknown }) {
const actived = this.activedGridItem.split("-"); const actived = this.activedGridItem.split("-");
const index = this.layout.findIndex( const index = this.layout.findIndex(