Skip to content

Commit cee8c65

Browse files
committed
block card
1 parent f6a99b0 commit cee8c65

File tree

1 file changed

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

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,14 +665,21 @@ qx.Class.define("osparc.dashboard.CardBase", {
665665
}
666666

667667
// Block card
668-
const inaccessibleServices = osparc.study.Utils.getCantExecuteServices(services);
669-
if (inaccessibleServices.length) {
668+
const cantReadServices = osparc.study.Utils.getCantExecuteServices(services);
669+
let inaccessibleServices = [];
670+
if (this.isResourceType("study") || this.isResourceType("template")) {
671+
inaccessibleServices = osparc.store.Services.getInaccessibleServices(this.getResourceData()["workbench"]);
672+
}
673+
if (cantReadServices.length || inaccessibleServices.length) {
670674
this.setBlocked("UNKNOWN_SERVICES");
671675
const image = "@FontAwesome5Solid/ban/";
672676
let toolTipText = this.tr("Inaccessible service(s):");
673-
inaccessibleServices.forEach(unSrv => {
677+
cantReadServices.forEach(unSrv => {
674678
toolTipText += "<br>" + unSrv.key + ":" + osparc.service.Utils.extractVersionDisplay(unSrv.release);
675679
});
680+
inaccessibleServices.forEach(unSrv => {
681+
toolTipText += "<br>" + unSrv.key + ":" + unSrv.version;
682+
});
676683
this.__showBlockedCard(image, toolTipText);
677684
}
678685

0 commit comments

Comments
 (0)