Skip to content

Commit cb82d38

Browse files
committed
minor
1 parent 3cf3a29 commit cb82d38

File tree

1 file changed

+10
-6
lines changed
  • services/static-webserver/client/source/class/osparc/workbench

1 file changed

+10
-6
lines changed

services/static-webserver/client/source/class/osparc/workbench/NodeUI.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,16 @@ qx.Class.define("osparc.workbench.NodeUI", {
407407
const lockState = node.getStatus().getLockState();
408408
const lock = this.getChildControl("lock");
409409
lockState.bind("locked", lock, "visibility", {
410-
converter: nodeLocked => {
411-
if (nodeLocked) {
412-
// if it's me the one using it, don't show the lock
413-
const myGroupId = osparc.auth.Data.getInstance().getGroupId();
414-
const currentUserGroupIds = lockState.getCurrentUserGroupIds();
415-
return currentUserGroupIds.includes(myGroupId) ? "excluded" : "visible";
410+
converter: locked => {
411+
if (locked) {
412+
if (node.isDynamic()) {
413+
// if it's dynamic, don't show the lock if it's me using it
414+
const myGroupId = osparc.auth.Data.getInstance().getGroupId();
415+
const currentUserGroupIds = lockState.getCurrentUserGroupIds();
416+
return currentUserGroupIds.includes(myGroupId) ? "excluded" : "visible";
417+
} else {
418+
return "visible";
419+
}
416420
}
417421
return "excluded";
418422
}

0 commit comments

Comments
 (0)