Bug Fixed setLastUsedWorkspace()

This commit is contained in:
Luis Fernando Molina committed 2021-07-06 08:36:35 +02:00
1 parent 577a80f8bc
commit 0f53c8eba6
1 file changed
+8 -2
@@ -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
}
}