From 0f53c8eba6461a14a06b62577222e8e199ee7ce4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 6 Jul 2021 08:36:35 +0200 Subject: [PATCH] Bug Fixed setLastUsedWorkspace() --- .../Foundations/UI/Spaces/Design-Space/Workspace.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js b/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js index 8112d404a..ea48f65ee 100644 --- a/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js +++ b/Projects/Foundations/UI/Spaces/Design-Space/Workspace.js @@ -197,8 +197,8 @@ function newWorkspace() { function onResponse(err) { if (err.result === GLOBAL.DEFAULT_OK_RESPONSE.result) { - window.localStorage.setItem('Last Used Workspace', workspace.name) - window.localStorage.setItem('Session Timestamp', sessionTimestamp) + setLastUsedWorkspace() + if (ARE_WE_RECORDING_A_MARKET_PANORAMA === false) { UI.projects.foundations.spaces.cockpitSpace.setStatus(workspace.name + ' Saved.', 50, UI.projects.foundations.spaces.cockpitSpace.statusTypes.ALL_GOOD) } @@ -211,6 +211,11 @@ function newWorkspace() { } } + function setLastUsedWorkspace() { + window.localStorage.setItem('Last Used Workspace', workspace.name) + window.localStorage.setItem('Session Timestamp', sessionTimestamp) + } + function savePlugins() { /* Here we will scan the workspace for all Plugins and we will try to save them. @@ -412,6 +417,7 @@ function newWorkspace() { await UI.projects.education.spaces.tutorialSpace.reset() runTasksAndSessions() + setLastUsedWorkspace() break } }