File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments