Skip to content

Commit deabd7e

Browse files
committed
minor
1 parent 316b068 commit deabd7e

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

services/static-webserver/client/source/class/osparc/data/model/NodeLockState.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ qx.Class.define("osparc.data.model.NodeLockState", {
3232
init: [],
3333
nullable: false,
3434
event: "changeCurrentUserGroupIds",
35-
apply: "__currentUserGroupIds",
3635
},
3736

3837
locked: {
@@ -62,10 +61,6 @@ qx.Class.define("osparc.data.model.NodeLockState", {
6261
}
6362
},
6463

65-
__currentUserGroupIds: function(currentUserGroupIds) {
66-
console.log("currentUserGroupIds", currentUserGroupIds);
67-
},
68-
6964
isLockedBySomeoneElse: function() {
7065
if (this.isLocked()) {
7166
const currentUserGroupIds = this.getCurrentUserGroupIds();

services/static-webserver/client/source/class/osparc/desktop/WorkbenchView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ qx.Class.define("osparc.desktop.WorkbenchView", {
6161
},
6262

6363
__handleIframeStateChange: function(node, iframeLayout) {
64+
console.log("handleIframeStateChange", node.getNodeId(), iframeLayout, node.getStatus().getLockState().isLocked(), node.getStatus().getLockState().getCurrentUserGroupIds());
6465
iframeLayout.removeAll();
6566
if (node && node.getIFrame()) {
6667
const iFrame = node.getIFrame();
6768
const src = iFrame.getSource();
6869
let showPage = iFrame;
69-
const nodeLockedState = node.getStatus().getLockState()
70-
if (nodeLockedState.isLocked() && nodeLockedState.isLockedBySomeoneElse()) {
70+
if (node.getStatus().getLockState().isLockedBySomeoneElse()) {
7171
showPage = node.getLockedPage();
7272
} else if (src === null || src === "about:blank") {
7373
showPage = node.getLoadingPage();

0 commit comments

Comments
 (0)