From a812c8622cb72cd675a901f15d4bf4c9a40c072c Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Thu, 11 Jan 2024 11:14:17 +0100 Subject: [PATCH] chore: hide workspace switch menu in selected workspaces (#2821) --- src/component/workspaces/exercise.ts | 1 + src/component/workspaces/prediction.ts | 5 +++++ src/component/workspaces/simulation.ts | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/src/component/workspaces/exercise.ts b/src/component/workspaces/exercise.ts index 54efb746b..2293b96f3 100644 --- a/src/component/workspaces/exercise.ts +++ b/src/component/workspaces/exercise.ts @@ -7,6 +7,7 @@ export const exercise: InnerWorkspace = { general: { hideGeneralSettings: true, hideLogs: true, + hideWorkspaces: true, }, panels: { spectraPanel: { display: true, open: true }, diff --git a/src/component/workspaces/prediction.ts b/src/component/workspaces/prediction.ts index b5e8ac723..1ae66ab1b 100644 --- a/src/component/workspaces/prediction.ts +++ b/src/component/workspaces/prediction.ts @@ -12,6 +12,11 @@ export const prediction: InnerWorkspace = { invert: false, }, display: { + general: { + hideGeneralSettings: true, + hideLogs: true, + hideWorkspaces: true, + }, panels: { spectraPanel: { display: true }, rangesPanel: { display: true }, diff --git a/src/component/workspaces/simulation.ts b/src/component/workspaces/simulation.ts index 628da33c8..32bb12996 100644 --- a/src/component/workspaces/simulation.ts +++ b/src/component/workspaces/simulation.ts @@ -12,6 +12,11 @@ export const simulation: InnerWorkspace = { invert: false, }, display: { + general: { + hideGeneralSettings: true, + hideLogs: true, + hideWorkspaces: true, + }, panels: { spectraPanel: { display: true }, simulationPanel: { display: true, open: true },