Skip to content

Commit baa78bc

Browse files
committed
rephrases
1 parent 6bdef17 commit baa78bc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

services/static-webserver/client/source/class/osparc/share/CollaboratorsWorkspace.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ qx.Class.define("osparc.share.CollaboratorsWorkspace", {
9191
osparc.store.Workspaces.getInstance().removeCollaborator(this.__workspace.getWorkspaceId(), collaborator["gid"])
9292
.then(() => {
9393
this.fireDataEvent("updateAccessRights", this.__workspace.serialize());
94-
osparc.FlashMessenger.getInstance().logAs(this.tr("Member successfully removed"));
94+
osparc.FlashMessenger.getInstance().logAs(collaborator["name"] + this.tr(" successfully removed"));
9595
this._reloadCollaboratorsList();
9696
})
9797
.catch(err => {
9898
console.error(err);
99-
osparc.FlashMessenger.getInstance().logAs(this.tr("Something went wrong removing Member"), "ERROR");
99+
osparc.FlashMessenger.getInstance().logAs(this.tr("Something went wrong removing ") + collaborator["name"], "ERROR");
100100
})
101101
.finally(() => {
102102
if (item) {
@@ -129,8 +129,8 @@ qx.Class.define("osparc.share.CollaboratorsWorkspace", {
129129
this.__make(
130130
collaborator["gid"],
131131
this.self().getCollaboratorAccessRight(),
132-
this.tr(`${osparc.data.Roles.WORKSPACE[1].label} successfully changed ${osparc.data.Roles.WORKSPACE[2].label}`),
133-
this.tr(`Something went wrong changing ${osparc.data.Roles.WORKSPACE[1].label} to ${osparc.data.Roles.WORKSPACE[2].label}`),
132+
this.tr(`Successfully promoted to ${osparc.data.Roles.WORKSPACE[2].label}`),
133+
this.tr(`Something went wrong promoting to ${osparc.data.Roles.WORKSPACE[2].label}`),
134134
item
135135
);
136136
},
@@ -139,8 +139,8 @@ qx.Class.define("osparc.share.CollaboratorsWorkspace", {
139139
this.__make(
140140
collaborator["gid"],
141141
this.self().getOwnerAccessRight(),
142-
this.tr(`${osparc.data.Roles.WORKSPACE[2].label} successfully changed to ${osparc.data.Roles.WORKSPACE[3].label}`),
143-
this.tr(`Something went wrong changing ${osparc.data.Roles.WORKSPACE[2].label} to ${osparc.data.Roles.WORKSPACE[3].label}`),
142+
this.tr(`Successfully promoted to ${osparc.data.Roles.WORKSPACE[3].label}`),
143+
this.tr(`Something went wrong promoting to ${osparc.data.Roles.WORKSPACE[3].label}`),
144144
item
145145
);
146146
},
@@ -151,8 +151,8 @@ qx.Class.define("osparc.share.CollaboratorsWorkspace", {
151151
this.__make(
152152
gid,
153153
this.self().getViewerAccessRight(),
154-
this.tr(`${osparc.data.Roles.WORKSPACE[2].label} successfully changed to ${osparc.data.Roles.WORKSPACE[1].label}`),
155-
this.tr(`Something went wrong changing ${osparc.data.Roles.WORKSPACE[2].label} to ${osparc.data.Roles.WORKSPACE[1].label}`),
154+
this.tr(`Successfully demoted to ${osparc.data.Roles.WORKSPACE[1].label}`),
155+
this.tr(`Something went wrong demoting to ${osparc.data.Roles.WORKSPACE[1].label}`),
156156
itm
157157
);
158158
};
@@ -182,8 +182,8 @@ qx.Class.define("osparc.share.CollaboratorsWorkspace", {
182182
this.__make(
183183
collaborator["gid"],
184184
this.self().getCollaboratorAccessRight(),
185-
this.tr(`${osparc.data.Roles.WORKSPACE[3].label} successfully changed to ${osparc.data.Roles.WORKSPACE[2].label}`),
186-
this.tr(`Something went wrong changing ${osparc.data.Roles.WORKSPACE[3].label} to ${osparc.data.Roles.WORKSPACE[2].label}`),
185+
this.tr(`Successfully demoted to ${osparc.data.Roles.WORKSPACE[2].label}`),
186+
this.tr(`Something went wrong demoting to ${osparc.data.Roles.WORKSPACE[2].label}`),
187187
item
188188
);
189189
}

0 commit comments

Comments
 (0)