Skip to content

Commit ae86609

Browse files
committed
Move button
1 parent dc28926 commit ae86609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)