Merge pull request #1277 from Luis-Fernando-Molina/develop
Contribution: Bug Fixed setLastUsedWorkspace()
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user