Skip to content

Commit cd29a8a

Browse files
committed
minor
1 parent 7e8d037 commit cd29a8a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ qx.Class.define("osparc.share.Collaborators", {
341341
) {
342342
let msg = this.tr("Collaborator can't be removed:");
343343
msg += this._serializedDataCopy["name"] + this.tr(" needs at least one owner.");
344+
if (
345+
Object.keys(this._serializedDataCopy["accessRights"]).length === 1 &&
346+
Object.values(this._serializedDataCopy["accessRights"])[0]["delete"]
347+
) {
348+
msg += "<br>" + this.tr("You might want to delete it instead.");
349+
}
344350
osparc.FlashMessenger.logError(msg);
345351
return;
346352
}

0 commit comments

Comments
 (0)