Skip to content

Commit

Permalink
ELEMENTS-1732: update permission popup shows empty permission on re-e…
Browse files Browse the repository at this point in the history
…diting
  • Loading branch information
Nishant0928 committed Apr 16, 2024
1 parent 02aa7c0 commit 0522bdf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/nuxeo-document-permissions/nuxeo-popup-permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ import '../nuxeo-button-styles.js';
</paper-dialog-scrollable>
<div class="buttons">
<paper-button dialog-dismiss class="secondary" on-click="doCancel"
<paper-button dialog-dismiss class="secondary"
>[[i18n('popupPermission.cancel')]]</paper-button
>
<dom-if if="{{!updatingACE}}">
Expand Down Expand Up @@ -273,6 +273,8 @@ import '../nuxeo-button-styles.js';
}

togglePopup() {
this.set('params.invalid', false);

this.$.popupRight.toggle();
}

Expand All @@ -288,10 +290,6 @@ import '../nuxeo-button-styles.js';
this._doSend(true);
}

doCancel() {
this.params = this._getResetParams();
this.set('params.invalid', false);
}

_computeTitle() {
if (this.updatingACE) {
Expand Down Expand Up @@ -322,6 +320,7 @@ import '../nuxeo-button-styles.js';
}
if (!this.shareWithExternal && !this.params.username && (!this.params.users || this.params.users.length === 0)) {
this.set('params.invalid', true);

return;
}

Expand Down Expand Up @@ -353,6 +352,7 @@ import '../nuxeo-button-styles.js';
if (this.updatingACE) {
this.$.replaceOp.execute();
} else {
this.set('params.invalid', false);
this.$.createOp.execute();
}

Expand Down Expand Up @@ -445,4 +445,4 @@ import '../nuxeo-button-styles.js';

customElements.define(PopupPermission.is, PopupPermission);
Nuxeo.PopupPermission = PopupPermission;
}
}

0 comments on commit 0522bdf

Please sign in to comment.