From 7261c38f1e741ae500759f27aafe592b34617ec8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 30 Oct 2020 09:41:02 +0100 Subject: [PATCH] Make Ui/Dropdown/Builder.ts eslint clean --- .../install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js | 2 +- .../install/files/ts/WoltLabSuite/Core/Ui/Dropdown/Builder.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js index 4b63783c5c..c4c8149736 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js @@ -67,7 +67,7 @@ define(["require", "exports", "tslib", "../../Core", "./Simple"], function (requ size = ~~data.icon.size; } const icon = document.createElement("span"); - icon.className = "icon icon" + size + " fa-" + data.icon.name; + icon.className = `icon icon${size} fa-${data.icon.name}`; link.appendChild(icon); } const label = typeof data.label === "string" ? data.label.trim() : ""; diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dropdown/Builder.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dropdown/Builder.ts index 1ca6eadf2f..53e65c3064 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dropdown/Builder.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dropdown/Builder.ts @@ -76,7 +76,7 @@ function buildItemFromData(data: DropdownBuilderItemData): HTMLLIElement { } const icon = document.createElement("span"); - icon.className = "icon icon" + size + " fa-" + data.icon.name; + icon.className = `icon icon${size} fa-${data.icon.name}`; link.appendChild(icon); } -- 2.20.1