Skip to content

Commit 4ad0592

Browse files
committed
remove property dynamically
1 parent af4e55c commit 4ad0592

File tree

1 file changed

+9
-2
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ qx.Class.define("osparc.dashboard.CardBase", {
2424
construct: function() {
2525
this.base(arguments);
2626

27+
if (osparc.utils.DisabledPlugins.isSimultaneousAccessEnabled()) {
28+
// "IN_USE" is not a blocker anymore
29+
const inUseIdx = qx.util.PropertyUtil.getProperties(osparc.dashboard.CardBase).blocked.check.indexOf("IN_USE");
30+
if (inUseIdx > -1) {
31+
qx.util.PropertyUtil.getProperties(osparc.dashboard.CardBase).blocked.check.splice(inUseIdx, 1);
32+
}
33+
}
34+
2735
[
2836
"pointerover",
2937
"focus"
@@ -457,8 +465,7 @@ qx.Class.define("osparc.dashboard.CardBase", {
457465
},
458466

459467
blocked: {
460-
// check: [true, "UNKNOWN_SERVICES", "IN_USE", "IN_DEBT", false],
461-
check: [true, "UNKNOWN_SERVICES", "IN_DEBT", false], // "IN_USE" is not a block anymore, it is just a status
468+
check: [true, "UNKNOWN_SERVICES", "IN_USE", "IN_DEBT", false],
462469
init: false,
463470
nullable: false,
464471
apply: "__applyBlocked"

0 commit comments

Comments
 (0)