From 9bfc1b34d6c15ffe0d19a18c5250a2f5ee77d821 Mon Sep 17 00:00:00 2001 From: Odei Maiz Date: Mon, 4 Nov 2024 14:03:48 +0100 Subject: [PATCH] add resource_id to notifications --- .../client/source/class/osparc/notification/Notifications.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/static-webserver/client/source/class/osparc/notification/Notifications.js b/services/static-webserver/client/source/class/osparc/notification/Notifications.js index 2f7ab34c146..0dc8fcaa70c 100644 --- a/services/static-webserver/client/source/class/osparc/notification/Notifications.js +++ b/services/static-webserver/client/source/class/osparc/notification/Notifications.js @@ -38,6 +38,7 @@ qx.Class.define("osparc.notification.Notifications", { const specNotification = { "category": "NEW_ORGANIZATION", "actionable_path": "organization/"+orgId, + "resource_id": orgId, "title": "New organization", "text": "You're now member of a new Organization" }; @@ -55,6 +56,7 @@ qx.Class.define("osparc.notification.Notifications", { const specNotification = { "category": "STUDY_SHARED", "actionable_path": "study/"+studyId, + "resource_id": studyId, "title": `${study} shared`, "text": `A ${study} was shared with you` }; @@ -72,6 +74,7 @@ qx.Class.define("osparc.notification.Notifications", { const specNotification = { "category": "TEMPLATE_SHARED", "actionable_path": "template/"+templateId, + "resource_id": templateId, "title": `${template} shared`, "text": `A ${template} was shared with you` }; @@ -86,6 +89,7 @@ qx.Class.define("osparc.notification.Notifications", { const specNotification = { "category": "ANNOTATION_NOTE", "actionable_path": "study/"+studyId, + "resource_id": studyId, "title": "Note added", "text": "A Note was added for you" }; @@ -100,6 +104,7 @@ qx.Class.define("osparc.notification.Notifications", { const specNotification = { "category": "WALLET_SHARED", "actionable_path": "wallet/"+walletId, + "resource_id": walletId, "title": "Credits shared", "text": "A Credit Account was shared with you" };