File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments