Skip to content

Commit a4eceb9

Browse files
committed
new message from MMUX
1 parent ce13d34 commit a4eceb9

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,21 @@ qx.Class.define("osparc.widget.PersistentIframe", {
332332
}
333333
case "openFunction": {
334334
// this is the MetaModeling service trying to show function/template information
335-
if (data["message"] && data["message"]["functionId"]) {
336-
const templateId = data["message"]["functionId"];
337-
const functionData = {
338-
"uuid": templateId,
335+
let functionData = null;
336+
if (data["message"] && data["message"]["uuid"]) {
337+
// new version, the uuid is from the function
338+
functionData = {
339+
"uuid": data["message"]["uuid"],
340+
"resourceType": "function",
341+
};
342+
} else if (data["message"] && data["message"]["functionId"]) {
343+
// old version, the uuid is from the template
344+
functionData = {
345+
"uuid": data["message"]["functionId"],
339346
"resourceType": "functionedTemplate",
340347
};
348+
}
349+
if (functionData) {
341350
const {
342351
resourceDetails,
343352
window,

0 commit comments

Comments
 (0)