From a762d7bafef6c8a4b515b4de1474c94d3d359ec2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 21 Sep 2020 09:36:22 +0200 Subject: [PATCH] Update Workspace.js --- DesignSpace/Workspace/Workspace.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DesignSpace/Workspace/Workspace.js b/DesignSpace/Workspace/Workspace.js index cea402cf2..b40efe538 100644 --- a/DesignSpace/Workspace/Workspace.js +++ b/DesignSpace/Workspace/Workspace.js @@ -186,6 +186,14 @@ function newWorkspace() { /* Validation if it is too early to save. */ if (isInitialized === false) { return } + /* Validation of that the user changed the workspace name at least once. */ + if (workspace.name === 'Default') { + canvas.cockpitSpace.setStatus( + 'Could not save the Workspace. Please rename the Workspace so that it can be saved.' + , 150, canvas.cockpitSpace.statusTypes.WARNING) + return + } + /* Validation of 2 sessions opened at the same time. */ let savedSessionTimestamp = window.localStorage.getItem('Session Timestamp') if (Number(savedSessionTimestamp) !== sessionTimestamp) {