Skip to content

Commit 735eb9d

Browse files
committed
canShowStudyData
1 parent 8f9a65b commit 735eb9d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
332332
});
333333
dataAccess.addListener("tap", () => osparc.widget.StudyDataManager.popUpInWindow(resourceData["uuid"]));
334334
this.addWidgetToTabs(dataAccess);
335+
336+
if (resourceData["resourceType"] === "study") {
337+
const canShowData = osparc.study.Utils.canShowStudyData(resourceData);
338+
dataAccess.setEnabled(canShowData);
339+
}
335340
}
336341

337342
if (selectedTabId) {

services/static-webserver/client/source/class/osparc/study/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ qx.Class.define("osparc.study.Utils", {
330330

331331
canShowStudyData: function(studyData) {
332332
const blocked = this.__getBlockedState(studyData);
333-
return [false].includes(blocked);
333+
return ["UNKNOWN_SERVICES", false].includes(blocked);
334334
},
335335

336336
canShowPreview: function(studyData) {

0 commit comments

Comments
 (0)