Make Ui/Dropdown/Builder.ts eslint clean
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 08:41:02 +0000 (09:41 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 09:50:36 +0000 (10:50 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js
wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Dropdown/Builder.ts

index 4b63783c5c742214179fcae4acd7ed5026ccbe29..c4c81497360ec36107d8c7e03ebb0348dd98bd95 100644 (file)
@@ -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() : "";
index 1ca6eadf2f03ef3a1683520efd08c884ab625b04..53e65c3064a22bea8e1afb27981dd86ad3ce502a 100644 (file)
@@ -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);
   }