Skip to content

Commit 9c94c6c

Browse files
committed
Apply suggestions from code review
1 parent 72ff05d commit 9c94c6c

File tree

2 files changed

+4
-8
lines changed
  • ts/WoltLabSuite/Core/Controller/Moderation
  • wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Moderation

2 files changed

+4
-8
lines changed

ts/WoltLabSuite/Core/Controller/Moderation/Report.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ async function handleCloseReport(queueId: number, redirectUrl: string): Promise<
3636
const label = document.createElement("label");
3737
const input = document.createElement("input");
3838
input.type = "checkbox";
39-
const text = document.createTextNode(getPhrase("wcf.moderation.report.removeReport.markAsJustified"));
4039

4140
dialog.content.append(label);
42-
label.append(input, " ", text);
41+
label.append(input, " ", getPhrase("wcf.moderation.report.removeReport.markAsJustified"));
4342
});
4443

4544
if (result) {
@@ -60,10 +59,9 @@ async function handleChangeJustifiedStatus(queueId: number, justified: boolean,
6059
const input = document.createElement("input");
6160
input.type = "checkbox";
6261
input.checked = justified;
63-
const text = document.createTextNode(getPhrase("wcf.moderation.report.changeJustifiedStatus.markAsJustified"));
6462

6563
dialog.content.append(label);
66-
label.append(input, " ", text);
64+
label.append(input, " ", getPhrase("wcf.moderation.report.changeJustifiedStatus.markAsJustified"));
6765
});
6866

6967
if (result) {

wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Moderation/Report.js

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)