Revert "Add option to skip banned words check in revert dialog"
This reverts commit a13c715990c18f45f379dfbb59e8cc6bf98bd7b4.
Reason for revert: This is specific to a single plugin and should not be in the main app
Change-Id: Ib70db224269a25ffcd70f596a65f256ffc866964
diff --git a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts
index 2149c27..329102a 100644
--- a/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts
+++ b/polygerrit-ui/app/elements/change/gr-change-actions/gr-change-actions.ts
@@ -49,7 +49,6 @@
NumericChangeId,
PatchSetNum,
RequestPayload,
- RevertInput,
RevertSubmissionInfo,
ReviewInput,
} from '../../../types/common';
@@ -1645,14 +1644,9 @@
assertIsDefined(this.confirmRevertDialog, 'confirmRevertDialog');
assertIsDefined(this.actionsModal, 'actionsModal');
const revertType = e.detail.revertType;
- const skipBannedWords = e.detail.skip_banned_words_check;
const message = e.detail.message;
const el = this.confirmRevertDialog;
this.actionsModal.close();
- const payload: RevertInput = {message};
- if (skipBannedWords) {
- payload.validation_options = {'banned-words~skip': ''};
- }
el.hidden = true;
switch (revertType) {
case RevertType.REVERT_SINGLE_CHANGE:
@@ -1660,7 +1654,7 @@
'/revert',
assertUIActionInfo(this.actions.revert),
false,
- payload
+ {message}
);
break;
case RevertType.REVERT_SUBMISSION:
@@ -1670,7 +1664,7 @@
'/revert_submission',
{__key: 'revert_submission', method: HttpMethod.POST} as UIActionInfo,
false,
- payload
+ {message}
);
break;
default: