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 ec98e78
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 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,7 @@ import '../nuxeo-button-styles.js';
}

togglePopup() {
this.set('params.invalid', false);
this.$.popupRight.toggle();
}

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

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

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

Expand Down

0 comments on commit ec98e78

Please sign in to comment.