From fb2c5f8d59aa4401385b9930423a938a674f4050 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 14 Jan 2021 19:30:20 +0100 Subject: [PATCH] Bug Fixed, not reindexing after workspace switch --- .../Superalgos/UI/Spaces/Design-Space/Workspace.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Projects/Superalgos/UI/Spaces/Design-Space/Workspace.js b/Projects/Superalgos/UI/Spaces/Design-Space/Workspace.js index 56b258f6e..65a6de58a 100644 --- a/Projects/Superalgos/UI/Spaces/Design-Space/Workspace.js +++ b/Projects/Superalgos/UI/Spaces/Design-Space/Workspace.js @@ -272,7 +272,7 @@ function newWorkspace() { } case 2: { - UI.projects.superalgos.utilities.statusBar.changeStatus('Deleting Workspace ' + thisObject.workspaceNode.name + '. This might take a few minutes depending on the size of the workspace.') + UI.projects.superalgos.utilities.statusBar.changeStatus('Unloading Workspace ' + thisObject.workspaceNode.name + '. This might take a few minutes depending on the size of the workspace.') setTimeout(takeAction, 100) workingAtTask = 0 @@ -344,7 +344,6 @@ function newWorkspace() { executeAction({ node: thisObject.workspaceNode, name: 'Recreate Workspace', project: 'Superalgos', callBackFunction: finishInitialization }) function finishInitialization() { setupEventsServerClients() - runTasksAndSessions() workingAtTask = 7 } } @@ -364,15 +363,17 @@ function newWorkspace() { } case 8: { - UI.projects.superalgos.utilities.statusBar.changeStatus('Search Engine Reindexing...') + UI.projects.superalgos.utilities.statusBar.changeStatus('Reindexing Search Engine...') setTimeout(takeAction, 100) workingAtTask = 0 function takeAction() { + UI.projects.superalgos.spaces.docsSpace.reset() + UI.projects.superalgos.spaces.docsSpace.searchEngine.setUpSearchEngine() // The docs needs to index the loaded workspace. + UI.projects.superalgos.spaces.floatingSpace.inMapMode = false thisObject.isInitialized = true saveWorkspace() - UI.projects.superalgos.spaces.docsSpace.reset() // The docs needs to index the loaded workspace. - UI.projects.superalgos.spaces.floatingSpace.inMapMode = false + runTasksAndSessions() } break }