File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ qx.Class.define("osparc.dashboard.MoveResourceTo", {
3030
3131 const workspacesAndFoldersTree = this . getChildControl ( "workspaces-and-folders-tree" ) ;
3232 this . getChildControl ( "cancel-btn" ) ;
33- const moveButton = this . getChildControl ( "move-btn" ) ;
3433
35- moveButton . setEnabled ( false ) ;
34+ const moveButton = this . getChildControl ( "move-btn" ) ;
35+ moveButton . setEnabled ( currentWorkspaceId !== null || currentFolderId !== null ) ; // disable if current location is My Workspace's root
3636 workspacesAndFoldersTree . getSelection ( ) . addListener ( "change" , ( ) => {
3737 const selection = workspacesAndFoldersTree . getSelection ( ) ;
3838 if ( selection . getLength ( ) > 0 ) {
You can’t perform that action at this time.
0 commit comments