Skip to content

Commit 33169cb

Browse files
committed
minor
1 parent 31cf721 commit 33169cb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

services/static-webserver/client/source/class/osparc/dashboard/MoveResourceTo.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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", () => {

0 commit comments

Comments
 (0)