From 512cf465996be8c035e568512d585af56dc42357 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 3 Jul 2024 09:39:40 +0200 Subject: [PATCH] Fix css-class added in `markElementAsErroneous()` --- ts/WoltLabSuite/Core/Component/File/File.ts | 2 +- .../install/files/js/WoltLabSuite/Core/Component/File/File.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/WoltLabSuite/Core/Component/File/File.ts b/ts/WoltLabSuite/Core/Component/File/File.ts index 1f4f36f91b..93f3f8ddd3 100644 --- a/ts/WoltLabSuite/Core/Component/File/File.ts +++ b/ts/WoltLabSuite/Core/Component/File/File.ts @@ -67,7 +67,7 @@ function markElementAsErroneous(element: HTMLElement, errorMessage: string): voi element.classList.add("fileList__item--error"); const errorElement = document.createElement("div"); - errorElement.classList.add("attachemnt__item__errorMessage"); + errorElement.classList.add("fileList__item__errorMessage"); errorElement.textContent = errorMessage; element.append(errorElement); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/File/File.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/File/File.js index 545b3ec8dd..b4eb537772 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/File/File.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/File/File.js @@ -57,7 +57,7 @@ define(["require", "exports", "WoltLabSuite/Core/Language", "WoltLabSuite/Core/F function markElementAsErroneous(element, errorMessage) { element.classList.add("fileList__item--error"); const errorElement = document.createElement("div"); - errorElement.classList.add("attachemnt__item__errorMessage"); + errorElement.classList.add("fileList__item__errorMessage"); errorElement.textContent = errorMessage; element.append(errorElement); } -- 2.20.1