Skip to content

Commit

Permalink
fix(MarkAsResolved): allow reselection of status on error
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuzen25 authored Nov 26, 2023
1 parent 10e06c5 commit 9961bf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9961bf3

Please sign in to comment.