Skip to content

Commit a51c8a1

Browse files
committed
[skip ci] purchases
1 parent b10e456 commit a51c8a1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

services/static-webserver/client/source/class/osparc/vipMarket/AnatomicalModelDetails.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
4949
if (anatomicalModelsData) {
5050
const modelInfo = this.__createModelInfo(anatomicalModelsData);
5151
const pricingUnits = this.__createPricingUnits(anatomicalModelsData);
52-
// const purchasedSection = this.__createPurchasedSection(anatomicalModelsData);
52+
const purchasedSection = this.__createPurchasesSection(anatomicalModelsData);
5353
const importButton = this.__createImportButton(anatomicalModelsData);
5454
this._add(modelInfo);
5555
this._add(pricingUnits);
56+
this._add(purchasedSection);
5657
this._add(importButton);
5758
} else {
5859
const selectModelLabel = new qx.ui.basic.Label().set({
@@ -204,8 +205,16 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
204205
return pricingUnitsLayout;
205206
},
206207

207-
__createPurchasedSection: function(anatomicalModelsData) {
208+
__createPurchasesSection: function(anatomicalModelsData) {
208209
console.log("anatomicalModelsData", anatomicalModelsData);
210+
const purchasesSection = new qx.ui.container.Composite(new qx.ui.layout.VBox(5).set({
211+
alignX: "center"
212+
}));
213+
anatomicalModelsData["purchases"].forEach(purchase => {
214+
const entry = new qx.ui.basic.Label("hey");
215+
purchasesSection.push(entry);
216+
});
217+
return purchasesSection;
209218
},
210219

211220
__createImportButton: function(anatomicalModelsData) {

0 commit comments

Comments
 (0)