File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,6 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
228228 // disable it until found in services store
229229 menuButton . setEnabled ( false ) ;
230230
231- // OM: direct access to service metadata
232-
233231 const key = newStudyData . expectedKey ;
234232 // Include deprecated versions, they should all be updatable to a non deprecated version
235233 const versions = osparc . service . Utils . getVersions ( key , false ) ;
@@ -250,6 +248,18 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
250248 newStudyLabel : newStudyData . newStudyLabel ,
251249 } ) ;
252250 } ) ;
251+
252+ const cb = e => {
253+ e . stopPropagation ( ) ;
254+ latestMetadata [ "resourceType" ] = "service" ;
255+ const resourceDetails = new osparc . dashboard . ResourceDetails ( latestMetadata ) ;
256+ osparc . dashboard . ResourceDetails . popUpInWindow ( resourceDetails ) ;
257+ }
258+ const infoButton = new osparc . ui . basic . IconButton ( osparc . ui . hint . InfoHint . INFO_ICON + "/16" , cb ) ;
259+ // where the shortcut is supposed to go
260+ // eslint-disable-next-line no-underscore-dangle
261+ menuButton . _add ( infoButton , { column : 2 } ) ;
262+
253263 this . __addIcon ( menuButton , newStudyData , latestMetadata ) ;
254264 this . __addFromResourceButton ( menuButton , newStudyData ) ;
255265 } )
You can’t perform that action at this time.
0 commit comments