File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
services/static-webserver/client/source/class/osparc/notification Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -169,15 +169,13 @@ qx.Class.define("osparc.notification.NotificationUI", {
169169 case "TEMPLATE_SHARED" :
170170 icon . setSource ( "@FontAwesome5Solid/copy/14" ) ;
171171 if ( resourceId ) {
172- const template = osparc . store . Templates . getTemplate ( resourceId ) ;
173- if ( template ) {
174- const templateAlias = osparc . product . Utils . getTemplateAlias ( {
175- firstUpperCase : true
176- } ) ;
177- titleLabel . setValue ( `${ templateAlias } '${ template [ "name" ] } '` ) ;
178- } else {
179- this . setEnabled ( false ) ;
180- }
172+ osparc . store . Templates . fetchTemplate ( resourceId )
173+ . then ( templateData => {
174+ if ( templateData ) {
175+ titleLabel . setValue ( templateData [ "name" ] ) ;
176+ }
177+ } )
178+ . catch ( ( ) => this . setEnabled ( false ) ) ;
181179 }
182180 if ( userFromId ) {
183181 const user = osparc . store . Groups . getInstance ( ) . getUserByUserId ( userFromId ) ;
You can’t perform that action at this time.
0 commit comments