File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,14 @@ qx.Class.define("osparc.dashboard.MoveResourceTo", {
3939 const item = selection . getItem ( 0 ) ;
4040 this . __selectedWorkspaceId = item . getWorkspaceId ( ) ;
4141 this . __selectedFolderId = item . getFolderId ( ) ;
42- moveButton . setEnabled ( this . __currentWorkspaceId !== this . __selectedWorkspaceId || this . __currentFolderId !== this . __selectedFolderId ) ;
42+ if ( this . __selectedWorkspaceId === - 1 ) {
43+ // "Shared Workspaces"
44+ moveButton . setEnabled ( false ) ;
45+ } else {
46+ // In principle, valid location
47+ // disable if it's the current location
48+ moveButton . setEnabled ( this . __currentWorkspaceId !== this . __selectedWorkspaceId || this . __currentFolderId !== this . __selectedFolderId ) ;
49+ }
4350 }
4451 } , this ) ;
4552 moveButton . addListener ( "execute" , ( ) => {
You can’t perform that action at this time.
0 commit comments