From 9961bf3a051ed03755b68431540fbf9dbc09b861 Mon Sep 17 00:00:00 2001 From: Frank <25704248+leranjun@users.noreply.github.com> Date: Sun, 26 Nov 2023 06:22:01 +0000 Subject: [PATCH] fix(MarkAsResolved): allow reselection of status on error --- .../MediaWiki:Gadget-MarkAsResolved-restricted.js | 4 +--- src/gadgets/MarkAsResolved/MediaWiki:Gadget-MarkAsResolved.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gadgets/MarkAsResolved-restricted/MediaWiki:Gadget-MarkAsResolved-restricted.js b/src/gadgets/MarkAsResolved-restricted/MediaWiki:Gadget-MarkAsResolved-restricted.js index 45c396da..d6db1d33 100644 --- a/src/gadgets/MarkAsResolved-restricted/MediaWiki:Gadget-MarkAsResolved-restricted.js +++ b/src/gadgets/MarkAsResolved-restricted/MediaWiki:Gadget-MarkAsResolved-restricted.js @@ -170,9 +170,7 @@ $(() => { if (action === "submit") { return new OO.ui.Process($.when((async () => { if (!this.status) { - throw new OO.ui.Error(wgULS("请选择一个状态", "請選擇一個狀態"), { - recoverable: false, - }); + throw new OO.ui.Error(wgULS("请选择一个状态", "請選擇一個狀態")); } const toclist = Object.fromEntries((await api.post({ action: "parse", diff --git a/src/gadgets/MarkAsResolved/MediaWiki:Gadget-MarkAsResolved.js b/src/gadgets/MarkAsResolved/MediaWiki:Gadget-MarkAsResolved.js index c5a05b42..a80adbec 100644 --- a/src/gadgets/MarkAsResolved/MediaWiki:Gadget-MarkAsResolved.js +++ b/src/gadgets/MarkAsResolved/MediaWiki:Gadget-MarkAsResolved.js @@ -179,9 +179,7 @@ $(() => { if (action === "submit") { return new OO.ui.Process($.when((async () => { if (!this.status) { - throw new OO.ui.Error(wgULS("请选择一个状态", "請選擇一個狀態"), { - recoverable: false, - }); + throw new OO.ui.Error(wgULS("请选择一个状态", "請選擇一個狀態")); } const toclist = Object.fromEntries((await api.post({ action: "parse",