Reformat the code using Prettier
authorAlexander Ebert <ebert@woltlab.com>
Mon, 30 Nov 2020 11:59:55 +0000 (12:59 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 30 Nov 2020 11:59:55 +0000 (12:59 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Acp/Ui/Menu/Item/Handler.ts

index 5eb6ac86f1ec6706f0689a187d9aee6f01ee314b..b6b10a1ab80a602e86c33f81691e76b16c5f9fdf 100644 (file)
@@ -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);
index 1f74d4f326ba02d046c3a0aa14c6024aa613ab8c..09e312bdc85dd59e1a84b30a7a0fd1dc8ef3ca69 100644 (file)
@@ -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);