Skip to content

Commit d6c2cc6

Browse files
authored
🐛 [Frontend] Fix Import ViP Model: store and pass modelId (#7291)
1 parent 6a305c1 commit d6c2cc6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

services/static-webserver/client/source/class/osparc/data/model/LicensedItemResource.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ qx.Class.define("osparc.data.model.LicensedItemResource", {
5252
}
5353

5454
this.set({
55+
modelId: licensedItemResourceData.id,
5556
description: description,
5657
title: title,
5758
subtitle: subtitle,
@@ -66,6 +67,13 @@ qx.Class.define("osparc.data.model.LicensedItemResource", {
6667
},
6768

6869
properties: {
70+
modelId: {
71+
check: "Number",
72+
nullable: false,
73+
init: null,
74+
event: "changeModelId",
75+
},
76+
6977
description: {
7078
check: "String",
7179
nullable: false,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ qx.Class.define("osparc.vipMarket.LicensedItemDetails", {
356356
});
357357
importButton.addListener("execute", () => {
358358
this.fireDataEvent("modelImportRequested", {
359-
modelId: anatomicalModelsData.getLicensedResources()[selectedIdx]["id"],
359+
modelId: anatomicalModelsData.getLicensedResources()[selectedIdx].getModelId(),
360360
categoryId: anatomicalModelsData.getCategoryId(),
361361
});
362362
}, this);

0 commit comments

Comments
 (0)