File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
services/static-webserver/client/source/class/osparc/data/model Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ qx.Class.define("osparc.data.model.LicensedItem", {
2424 construct : function ( licensedItemData ) {
2525 this . base ( arguments ) ;
2626
27- let categoryIcon = licensedItemData . categoryIcon || `osparc/market/${ licensedItemData . categoryId } .svg` ;
2827 let thumbnail = "" ;
2928 let date = null ;
3029 let licensedResources = [ ] ;
@@ -48,6 +47,12 @@ qx.Class.define("osparc.data.model.LicensedItem", {
4847 licensedResources . push ( licensedItemResource ) ;
4948 } ) ;
5049 }
50+ let categoryIcon = "@FontAwesome5Solid/shopping-bag/20" ;
51+ if ( licensedItemData . categoryIcon ) {
52+ categoryIcon = licensedItemData . categoryIcon ;
53+ } else if ( qx . util . ResourceManager . getInstance ( ) . has ( `osparc/market/${ licensedItemData . categoryId } .svg` ) ) {
54+ categoryIcon = `osparc/market/${ licensedItemData . categoryId } .svg` ;
55+ }
5156
5257 this . set ( {
5358 licensedItemId : licensedItemData . licensedItemId ,
You can’t perform that action at this time.
0 commit comments