File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -770,16 +770,20 @@ qx.Class.define("osparc.dashboard.CardBase", {
770770
771771 __applyState : function ( state ) {
772772 let lockInUse = false ;
773- if ( "locked" in state && "value" in state [ "locked" ] ) {
773+ if (
774+ ! osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) &&
775+ "locked" in state && "value" in state [ "locked" ]
776+ ) {
774777 lockInUse = state [ "locked" ] [ "value" ] ;
775778 }
776- if ( osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) ) {
777- if ( lockInUse && "locked" in state && "status" in state [ "locked" ] && "OPENED" === state [ "locked" ] [ "status" ] ) {
778- this . __showWhoIsIn ( state [ "locked" ] [ "owner" ] ) ;
779- }
780- } else {
781- this . setBlocked ( lockInUse ? "IN_USE" : false ) ;
782- if ( lockInUse ) {
779+ this . setBlocked ( lockInUse ? "IN_USE" : false ) ;
780+
781+ if ( lockInUse ) {
782+ if ( osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) ) {
783+ if ( "locked" in state && "status" in state [ "locked" ] && "OPENED" === state [ "locked" ] [ "status" ] ) {
784+ this . __showWhoIsIn ( state [ "locked" ] [ "owner" ] ) ;
785+ }
786+ } else {
783787 this . __showBlockedCardFromStatus ( "IN_USE" , state [ "locked" ] ) ;
784788 }
785789 }
You can’t perform that action at this time.
0 commit comments