Skip to content

Commit 47f3f62

Browse files
committed
__showWhoIsIn
1 parent f4a38a1 commit 47f3f62

File tree

1 file changed

+8
-11
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+8
-11
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)