From 9677fff9d0d3678b827e80f014380f3b479892f0 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 16 Feb 2024 13:50:18 +0100 Subject: [PATCH] Set `created` to `true` if the `UiPageAction` does not include the editor. --- ts/WoltLabSuite/Core/Controller/Clipboard.ts | 1 + .../install/files/js/WoltLabSuite/Core/Controller/Clipboard.js | 1 + 2 files changed, 2 insertions(+) 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) { -- 2.20.1