File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -770,20 +770,17 @@ qx.Class.define("osparc.dashboard.CardBase", {
770770
771771 __applyState : function ( state ) {
772772 let lockInUse = false ;
773- if (
774- ! osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) &&
775- "locked" in state && "value" in state [ "locked" ]
776- ) {
773+ if ( "locked" in state && "value" in state [ "locked" ] ) {
777774 lockInUse = state [ "locked" ] [ "value" ] ;
778775 }
779- this . setBlocked ( lockInUse ? "IN_USE" : false ) ;
776+ if ( osparc . utils . DisabledPlugins . isSimultaneousAccessEnabled ( ) ) {
777+ if ( lockInUse && "OPENED" === state [ "locked" ] [ "status" ] ) {
778+ this . __showWhoIsIn ( state [ "locked" ] [ "owner" ] ) ;
779+ }
780+ } else {
781+ this . setBlocked ( lockInUse ? "IN_USE" : false ) ;
780782
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 {
783+ if ( lockInUse ) {
787784 this . __showBlockedCardFromStatus ( "IN_USE" , state [ "locked" ] ) ;
788785 }
789786 }
You can’t perform that action at this time.
0 commit comments