diff --git a/ui/nuxeo-document-permissions/nuxeo-popup-permission.js b/ui/nuxeo-document-permissions/nuxeo-popup-permission.js index 8c032844fa..bbe43bdb2a 100644 --- a/ui/nuxeo-document-permissions/nuxeo-popup-permission.js +++ b/ui/nuxeo-document-permissions/nuxeo-popup-permission.js @@ -194,7 +194,7 @@ import '../nuxeo-button-styles.js';
- [[i18n('popupPermission.cancel')]] @@ -273,6 +273,7 @@ import '../nuxeo-button-styles.js'; } togglePopup() { + this.set('params.invalid', false); this.$.popupRight.toggle(); } @@ -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'); @@ -322,6 +318,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; } @@ -353,6 +350,7 @@ import '../nuxeo-button-styles.js'; if (this.updatingACE) { this.$.replaceOp.execute(); } else { + this.set('params.invalid', false); this.$.createOp.execute(); }