File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
services/static-webserver/client/source/class/osparc/workbench Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments