Skip to content

Commit 7c9b5c5

Browse files
committed
openConversations
1 parent 692a6db commit 7c9b5c5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
144144
__resourceModel: null,
145145
__infoPage: null,
146146
__servicesUpdatePage: null,
147+
__conversationsPage: null,
147148
__permissionsPage: null,
148149
__tagsPage: null,
149150
__billingSettings: null,
@@ -294,6 +295,10 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
294295
this._openPage(this.__servicesUpdatePage);
295296
},
296297

298+
openConversations: function() {
299+
this._openPage(this.__conversationsPage);
300+
},
301+
297302
openAccessRights: function() {
298303
this._openPage(this.__permissionsPage);
299304
},
@@ -556,7 +561,7 @@ qx.Class.define("osparc.dashboard.ResourceDetails", {
556561
const id = "Conversations";
557562
const title = this.tr("Conversations");
558563
const iconSrc = "@FontAwesome5Solid/comments/22";
559-
const page = new osparc.dashboard.resources.pages.BasePage(title, iconSrc, id);
564+
const page = this.__conversationsPage = new osparc.dashboard.resources.pages.BasePage(title, iconSrc, id);
560565
this.__addToolbarButtons(page);
561566

562567
const lazyLoadContent = () => {

services/static-webserver/client/source/class/osparc/notification/NotificationUI.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ qx.Class.define("osparc.notification.NotificationUI", {
340340
osparc.dashboard.ResourceBrowserBase.startStudyById(studyId, openCB);
341341
}
342342
});
343+
if (notification.getCategory() === "CONVERSATION_NOTIFICATION") {
344+
resourceDetails.openConversations();
345+
}
343346
}
344347
})
345348
.catch(err => {

0 commit comments

Comments
 (0)