From: Cyperghost Date: Fri, 16 Feb 2024 12:50:18 +0000 (+0100) Subject: Set `created` to `true` if the `UiPageAction` does not include the editor. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7b28bbdc1ecd2799d59af98bbe491db07e50d9d4;p=GitHub%2FWoltLab%2FWCF.git Set `created` to `true` if the `UiPageAction` does not include the editor. --- diff --git a/ts/WoltLabSuite/Core/Controller/Clipboard.ts b/ts/WoltLabSuite/Core/Controller/Clipboard.ts index 8393a82b06..3f9d438fdc 100644 --- a/ts/WoltLabSuite/Core/Controller/Clipboard.ts +++ b/ts/WoltLabSuite/Core/Controller/Clipboard.ts @@ -496,6 +496,7 @@ class ControllerClipboard { UiPageAction.show(actionName); } else { UiPageAction.add(actionName, editor); + created = true; } } diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Clipboard.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Clipboard.js index 9ae670aee8..55b93753c7 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Clipboard.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Clipboard.js @@ -411,6 +411,7 @@ define(["require", "exports", "tslib", "../Ajax", "../Core", "../Dom/Change/List } else { UiPageAction.add(actionName, editor); + created = true; } } if (created) {