@@ -89,45 +89,50 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
8989 } ,
9090
9191 __addModelsInfo : function ( ) {
92- const modelLayout = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 6 ) ) ;
92+ const modelBundleLayout = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 6 ) ) ;
9393
9494 this . __selectedModelLayout = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 6 ) ) ;
95- modelLayout . add ( this . __selectedModelLayout ) ;
95+ modelBundleLayout . add ( this . __selectedModelLayout ) ;
9696
9797 const licensedItemBundleData = this . getAnatomicalModelsData ( ) ;
9898 const modelsInfo = licensedItemBundleData [ "licensedResources" ] ;
9999 if ( modelsInfo . length > 1 ) {
100100 const modelSelectionLayout = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 4 ) ) ;
101101 const titleLabel = new qx . ui . basic . Label ( this . tr ( "This bundle contains:" ) ) ;
102102 modelSelectionLayout . add ( titleLabel ) ;
103- const thumbnailsLayout = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 2 ) ) ;
104- modelSelectionLayout . add ( thumbnailsLayout ) ;
103+ const modelsLayout = new qx . ui . container . Composite ( new qx . ui . layout . VBox ( 4 ) ) ;
104+ modelSelectionLayout . add ( modelsLayout ) ;
105105 const thumbnailTapped = idx => {
106106 this . __populateSelectedModelInfo ( idx ) ;
107107 const selectedBorderColor = qx . theme . manager . Color . getInstance ( ) . resolve ( "strong-main" ) ;
108108 const unselectedBorderColor = "transparent" ;
109- thumbnailsLayout . getChildren ( ) . forEach ( ( thumbnail , index ) => {
109+ modelsLayout . getChildren ( ) . forEach ( ( thumbnailAndTitle , index ) => {
110+ const thumbnail = thumbnailAndTitle . getChildren ( ) [ 0 ] ;
110111 osparc . utils . Utils . updateBorderColor ( thumbnail , index === idx ? selectedBorderColor : unselectedBorderColor ) ;
111112 } ) ;
112113 }
113114 modelsInfo . forEach ( ( modelInfo , idx ) => {
115+ const modelLayout = new qx . ui . container . Composite ( new qx . ui . layout . HBox ( 4 ) ) ;
114116 const miniThumbnail = this . self ( ) . createThumbnail ( modelInfo [ "source" ] [ "thumbnail" ] , 32 ) ;
115- miniThumbnail . set ( {
116- toolTipText : osparc . store . LicensedItems . licensedResourceNameAndVersion ( modelInfo ) ,
117- } ) ;
118117 osparc . utils . Utils . addBorder ( miniThumbnail ) ;
118+ modelLayout . add ( miniThumbnail ) ;
119119 miniThumbnail . addListener ( "tap" , ( ) => thumbnailTapped ( idx ) ) ;
120- thumbnailsLayout . add ( miniThumbnail ) ;
120+ const title = new qx . ui . basic . Label ( ) . set ( {
121+ value : osparc . store . LicensedItems . licensedResourceTitle ( modelInfo ) ,
122+ alignY : "middle"
123+ } ) ;
124+ modelLayout . add ( title ) ;
125+ modelsLayout . add ( modelLayout ) ;
121126 } ) ;
122- modelLayout . add ( modelSelectionLayout ) ;
127+ modelBundleLayout . add ( modelSelectionLayout ) ;
123128 thumbnailTapped ( 0 ) ;
124129
125130 this . __populateSelectedModelInfo ( ) ;
126131 } else {
127132 this . __populateSelectedModelInfo ( ) ;
128133 }
129134
130- this . _add ( modelLayout ) ;
135+ this . _add ( modelBundleLayout ) ;
131136 } ,
132137
133138 __populateSelectedModelInfo : function ( selectedIdx = 0 ) {
@@ -445,7 +450,7 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
445450 rowIdx ++ ;
446451
447452 const entryToGrid = ( licensedResource , seat , row ) => {
448- const title = osparc . store . LicensedItems . licensedResourceNameAndVersion ( licensedResource ) ;
453+ const title = osparc . store . LicensedItems . licensedResourceTitle ( licensedResource ) ;
449454 seatsSection . add ( new qx . ui . basic . Label ( title ) . set ( { font : "text-14" } ) , {
450455 column : 0 ,
451456 row,
0 commit comments