Fix the removal of the loading indicator when editing messages
authorAlexander Ebert <ebert@woltlab.com>
Thu, 6 Apr 2023 14:26:02 +0000 (16:26 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 6 Apr 2023 14:26:02 +0000 (16:26 +0200)
ts/WoltLabSuite/Core/Ui/Message/InlineEditor.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Message/InlineEditor.js

index 2e7626372ad1deec12d40ec16583213d4fd0bb5a..db6cef880f9e45a8f8b406daf7314c1ba6c8c0cd 100644 (file)
@@ -612,7 +612,7 @@ class UiMessageInlineEditor implements AjaxCallbackObject {
     const elementData = this._elements.get(this._activeElement!)!;
     const messageBodyEditor = elementData.messageBodyEditor!;
 
-    messageBodyEditor.querySelector("fa-icon")!.remove();
+    messageBodyEditor.querySelector('fa-icon[name="spinner"]')!.remove();
 
     const editorContainer = messageBodyEditor.querySelector(".editorContainer") as HTMLElement;
     if (editorContainer !== null) {
index 9ae1fc64d322fc7af140cf90aea58d07bf6867c7..473121e68aa3fe1108d0df70ecdffec3a64e8828 100644 (file)
@@ -479,7 +479,7 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Component/Ckeditor/Eve
         _restoreEditor() {
             const elementData = this._elements.get(this._activeElement);
             const messageBodyEditor = elementData.messageBodyEditor;
-            messageBodyEditor.querySelector("fa-icon").remove();
+            messageBodyEditor.querySelector('fa-icon[name="spinner"]').remove();
             const editorContainer = messageBodyEditor.querySelector(".editorContainer");
             if (editorContainer !== null) {
                 Util_1.default.show(editorContainer);