Skip to content

Commit a48e10b

Browse files
committed
blocked card
1 parent 1c542da commit a48e10b

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,9 @@ qx.Class.define("osparc.dashboard.CardBase", {
651651
};
652652
osparc.data.Resources.fetch("studies", "getServices", params)
653653
.then(resp => {
654-
console.log("OM getServices", resp);
655-
656-
this.setEmptyWorkbench(Object.keys(workbench).length === 0);
654+
const services = resp["services"];
655+
console.log("OM get Study Services", services);
656+
this.setEmptyWorkbench(services.length === 0);
657657

658658
// Updatable study
659659
if (osparc.study.Utils.isWorkbenchRetired(workbench)) {
@@ -668,13 +668,13 @@ qx.Class.define("osparc.dashboard.CardBase", {
668668
}
669669

670670
// Block card
671-
const unaccessibleServices = osparc.study.Utils.getInaccessibleServices(workbench)
671+
const unaccessibleServices = services.filter(service => service["execute"] === false);
672672
if (unaccessibleServices.length) {
673673
this.setBlocked("UNKNOWN_SERVICES");
674674
let image = "@FontAwesome5Solid/ban/";
675675
let toolTipText = this.tr("Service info missing");
676676
unaccessibleServices.forEach(unSrv => {
677-
toolTipText += "<br>" + unSrv.key + ":" + unSrv.version;
677+
toolTipText += "<br>" + unSrv.key + ":" + unSrv.release.version;
678678
});
679679
this.__showBlockedCard(image, toolTipText);
680680
}

0 commit comments

Comments
 (0)