From 185bc554504ca22f58c11ca43692017ac1d110bb Mon Sep 17 00:00:00 2001 From: Peter Olu Date: Tue, 10 May 2022 13:02:43 +0100 Subject: [PATCH] trace tool toggled from component --- src/store/modules/dashboard.ts | 15 ++++++++++----- src/views/dashboard/controls/Topology.vue | 6 ++++-- src/views/dashboard/controls/Trace.vue | 10 +++++++++- src/views/dashboard/panel/Tool.vue | 12 +++++++++--- 4 files changed, 32 insertions(+), 11 deletions(-) diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index fca35e5f..7e36489d 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -37,10 +37,11 @@ interface DashboardState { activedGridItem: string; durationTime: Duration; selectorStore: any; - showTopology: boolean; fullView: boolean; currentTabItems: LayoutConfig[]; - currentTabName: string; + currentTabName: string; // TODO: remove before commit + showTraceTools: boolean; + showTopologyTools: boolean; dashboards: DashboardItem[]; currentDashboard: Nullable; editMode: boolean; @@ -57,7 +58,8 @@ export const dashboardStore = defineStore({ activedGridItem: "", durationTime: useAppStoreWithOut().durationTime, selectorStore: useSelectorStore(), - showTopology: false, + showTopologyTools: false, + showTraceTools: false, fullView: false, currentTabItems: [], currentTabName: '', @@ -265,8 +267,11 @@ export const dashboardStore = defineStore({ setEntity(type: string) { this.entity = type; }, - setTopology(show: boolean) { - this.showTopology = show; + setTraceTools(show: boolean) { + this.showTraceTools = show; + }, + setTopologyTools(show: boolean) { + this.showTopologyTools = show; }, setConfigs(param: { [key: string]: unknown }) { const actived = this.activedGridItem.split("-"); diff --git a/src/views/dashboard/controls/Topology.vue b/src/views/dashboard/controls/Topology.vue index 6fa8a6e8..9bbd0d92 100644 --- a/src/views/dashboard/controls/Topology.vue +++ b/src/views/dashboard/controls/Topology.vue @@ -38,11 +38,13 @@ limitations under the License. -->