Skip to content

Commit 394cfd6

Browse files
committed
pass categoryId to the rocket
1 parent 0b451b9 commit 394cfd6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ qx.Class.define("osparc.vipMarket.AnatomicalModelDetails", {
345345
});
346346
importButton.addListener("execute", () => {
347347
this.fireDataEvent("modelImportRequested", {
348-
modelId: anatomicalModelsData["licensedResources"][selectedIdx]["source"]["id"]
348+
modelId: anatomicalModelsData["licensedResources"][selectedIdx]["source"]["id"],
349+
categoryId: anatomicalModelsData["categoryId"],
349350
});
350351
}, this);
351352

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
212212
if (!anatomicModelDetails.hasListener("modelImportRequested")) {
213213
anatomicModelDetails.addListener("modelImportRequested", e => {
214214
const {
215-
modelId
215+
modelId,
216+
categoryId,
216217
} = e.getData();
217-
this.__sendImportModelMessage(modelId);
218+
this.__sendImportModelMessage(modelId, categoryId);
218219
}, this);
219220
}
220221
},
@@ -317,7 +318,7 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
317318
});
318319
},
319320

320-
__sendImportModelMessage: function(modelId) {
321+
__sendImportModelMessage: function(modelId, categoryId) {
321322
const store = osparc.store.Store.getInstance();
322323
const currentStudy = store.getCurrentStudy();
323324
const nodeId = this.getOpenBy();
@@ -326,6 +327,7 @@ qx.Class.define("osparc.vipMarket.VipMarket", {
326327
"type": "importModel",
327328
"message": {
328329
"modelId": modelId,
330+
"categoryId": categoryId,
329331
},
330332
};
331333
if (currentStudy.sendMessageToIframe(nodeId, msg)) {

0 commit comments

Comments
 (0)