Skip to content

Commit f4a38a1

Browse files
committed
minor
1 parent 52220e4 commit f4a38a1

File tree

1 file changed

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

1 file changed

+12
-8
lines changed

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

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

0 commit comments

Comments
 (0)