From: Tim Düsterhus Date: Fri, 30 Oct 2020 11:25:12 +0000 (+0100) Subject: Make everything no-case-declarations clean X-Git-Tag: 5.4.0_Alpha_1~668 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0979ce0db7185161ded0a0e46dd0235304c0d42;p=GitHub%2FWoltLab%2FWCF.git Make everything no-case-declarations clean --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js index 7b2af159e1..040e604184 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js @@ -103,7 +103,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Dom/Ut let button; switch (data.actionName) { case "ban": - case "unban": + case "unban": { this.header.dataset.banned = data.actionName === "ban" ? "true" : "false"; button = document.querySelector(".userProfileButtonMenu .jsButtonUserBan"); button.textContent = Language.get("wcf.user." + (data.actionName === "ban" ? "unban" : "ban")); @@ -119,6 +119,7 @@ define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Dom/Ut banIcon.remove(); } break; + } case "disableAvatar": case "enableAvatar": this.header.dataset.disableAvatar = data.actionName === "disableAvatar" ? "true" : "false"; diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/Editor.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/Editor.ts index 74ada47594..e11794dce3 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/Editor.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/User/Editor.ts @@ -123,7 +123,7 @@ class UserEditor implements AjaxCallbackObject, DialogCallbackObject { let button: HTMLElement; switch (data.actionName) { case "ban": - case "unban": + case "unban": { this.header.dataset.banned = data.actionName === "ban" ? "true" : "false"; button = document.querySelector(".userProfileButtonMenu .jsButtonUserBan") as HTMLElement; button.textContent = Language.get("wcf.user." + (data.actionName === "ban" ? "unban" : "ban")); @@ -139,6 +139,7 @@ class UserEditor implements AjaxCallbackObject, DialogCallbackObject { banIcon.remove(); } break; + } case "disableAvatar": case "enableAvatar":