Skip to content

Commit f6a99b0

Browse files
committed
typo
1 parent 1b301c4 commit f6a99b0

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

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

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

667667
// Block card
668-
const unaccessibleServices = osparc.study.Utils.getCantExecuteServices(services);
669-
if (unaccessibleServices.length) {
668+
const inaccessibleServices = osparc.study.Utils.getCantExecuteServices(services);
669+
if (inaccessibleServices.length) {
670670
this.setBlocked("UNKNOWN_SERVICES");
671671
const image = "@FontAwesome5Solid/ban/";
672-
let toolTipText = this.tr("Unaccessible service(s):");
673-
unaccessibleServices.forEach(unSrv => {
672+
let toolTipText = this.tr("Inaccessible service(s):");
673+
inaccessibleServices.forEach(unSrv => {
674674
toolTipText += "<br>" + unSrv.key + ":" + osparc.service.Utils.extractVersionDisplay(unSrv.release);
675675
});
676676
this.__showBlockedCard(image, toolTipText);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ qx.Class.define("osparc.desktop.MainPageHandler", {
113113

114114
osparc.store.Services.getStudyServicesMetadata(studyData)
115115
.finally(() => {
116-
const inaccessibleServices = osparc.store.Services.getInaccessibleServices(studyData["workbench"])
116+
const inaccessibleServices = osparc.store.Services.getInaccessibleServices(studyData["workbench"]);
117117
if (inaccessibleServices.length) {
118118
const msg = osparc.store.Services.getInaccessibleServicesMsg(inaccessibleServices, studyData["workbench"]);
119119
osparc.FlashMessenger.logError(msg);

services/static-webserver/client/source/class/osparc/store/Services.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ qx.Class.define("osparc.store.Services", {
290290

291291
getInaccessibleServices: function(workbench) {
292292
const allServices = this.__servicesCached;
293-
const unaccessibleServices = [];
293+
const inaccessibleServices = [];
294294
const wbServices = osparc.study.Utils.extractUniqueServices(workbench);
295295
wbServices.forEach(srv => {
296296
if (
@@ -300,12 +300,12 @@ qx.Class.define("osparc.store.Services", {
300300
) {
301301
return;
302302
}
303-
const idx = unaccessibleServices.findIndex(unSrv => unSrv.key === srv.key && unSrv.version === srv.version);
303+
const idx = inaccessibleServices.findIndex(unSrv => unSrv.key === srv.key && unSrv.version === srv.version);
304304
if (idx === -1) {
305-
unaccessibleServices.push(srv);
305+
inaccessibleServices.push(srv);
306306
}
307307
});
308-
return unaccessibleServices;
308+
return inaccessibleServices;
309309
},
310310

311311
getInaccessibleServicesMsg: function(inaccessibleServices, workbench) {

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,9 @@ qx.Class.define("osparc.study.Utils", {
270270

271271
__getBlockedState: function(studyData) {
272272
if (studyData["services"]) {
273-
const unaccessibleServices = osparc.study.Utils.getCantExecuteServices(studyData["services"])
274-
if (unaccessibleServices.length) {
273+
const cantReadServices = osparc.study.Utils.getCantExecuteServices(studyData["services"]);
274+
const inaccessibleServices = osparc.store.Services.getInaccessibleServices(studyData["workbench"]);
275+
if (cantReadServices.length || inaccessibleServices.length) {
275276
return "UNKNOWN_SERVICES";
276277
}
277278
}

0 commit comments

Comments
 (0)