From 2edbebdda3cefbc6a66be1b5f4953273a1f2b6f1 Mon Sep 17 00:00:00 2001 From: Peter Olu Date: Fri, 6 May 2022 04:39:27 +0100 Subject: [PATCH] moving dispay determinants to store --- src/store/modules/trace.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/store/modules/trace.ts b/src/store/modules/trace.ts index 92675faf..b04b1d97 100644 --- a/src/store/modules/trace.ts +++ b/src/store/modules/trace.ts @@ -71,8 +71,11 @@ export const traceStore = defineStore({ setTraceCondition(data: any) { this.condition = { ...this.condition, ...data }; }, - setDisplayMode(data:string){ - this.displayMode = data + setDisplayMode(data: string) { + this.displayMode = data; + }, + setCurrentView(data: string) { + this.currentView = data; }, setCurrentTrace(trace: Trace) { this.currentTrace = trace;