From d218f9ec038eaf26c7696e972202ba33ef788809 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 30 Nov 2020 12:59:55 +0100 Subject: [PATCH] Reformat the code using Prettier --- .../files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js | 3 ++- .../files/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js index 5eb6ac86f1..b6b10a1ab8 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js @@ -53,8 +53,9 @@ define(["require", "exports", "tslib", "../../../../Dom/Util", "../../../../Lang if (~~value) { Util_1.default.show(this.containerInternalLink); Util_1.default.hide(this.containerExternalLink); - if (this.handlers.size) + if (this.handlers.size) { this.togglePageId(); + } } else { Util_1.default.hide(this.containerInternalLink); diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts index 1f74d4f326..09e312bdc8 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts @@ -68,7 +68,9 @@ class AcpUiMenuItemHandler { if (~~value) { DomUtil.show(this.containerInternalLink); DomUtil.hide(this.containerExternalLink); - if (this.handlers.size) this.togglePageId(); + if (this.handlers.size) { + this.togglePageId(); + } } else { DomUtil.hide(this.containerInternalLink); DomUtil.hide(this.containerPageObjectId); -- 2.20.1