Skip to content

Commit a15bc60

Browse files
committed
notify works
1 parent abd1572 commit a15bc60

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

services/static-webserver/client/source/class/osparc/editor/AnnotationNoteCreator.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ qx.Class.define("osparc.editor.AnnotationNoteCreator", {
9696
recipientsManager.addListener("addCollaborators", e => {
9797
const data = e.getData();
9898
const recipientGids = data["selectedGids"];
99-
10099
if (recipientGids && recipientGids.length) {
101100
const recipientGid = parseInt(recipientGids[0]);
102101
this.__setRecipientGid(recipientGid);

services/static-webserver/client/source/class/osparc/info/CommentAdd.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,13 @@ qx.Class.define("osparc.info.CommentAdd", {
134134
__notifyUserTapped: function() {
135135
const showOrganizations = false;
136136
const showAccessRights = false;
137-
const recipientsManager = new osparc.share.NewCollaboratorsManager(this.__studyData, showOrganizations, showAccessRights).set({
137+
const userManager = new osparc.share.NewCollaboratorsManager(this.__studyData, showOrganizations, showAccessRights).set({
138138
acceptOnlyOne: true,
139139
});
140-
recipientsManager.setCaption(this.tr("Notify user"));
141-
recipientsManager.getActionButton().setLabel(this.tr("Notify"));
142-
recipientsManager.addListener("addCollaborators", e => {
140+
userManager.setCaption(this.tr("Notify user"));
141+
userManager.getActionButton().setLabel(this.tr("Notify"));
142+
userManager.addListener("addCollaborators", e => {
143+
userManager.close();
143144
const data = e.getData();
144145
const userGids = data["selectedGids"];
145146
if (userGids && userGids.length) {
@@ -187,7 +188,7 @@ qx.Class.define("osparc.info.CommentAdd", {
187188
if (userGroupId) {
188189
osparc.study.Conversations.notifyUser(this.__studyData["uuid"], this.__conversationId, userGroupId)
189190
.then(data => {
190-
console.log(data);
191+
this.fireDataEvent("commentAdded", data);
191192
});
192193
}
193194
},

0 commit comments

Comments
 (0)