From 2b96dc91aa5a6f63ceaeee3dd1d06073d915f252 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 19 Feb 2021 23:09:15 +0100 Subject: [PATCH] Added functionality to the close button --- shared/js/ui/modal/invite/Controller.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/js/ui/modal/invite/Controller.ts b/shared/js/ui/modal/invite/Controller.ts index 08a97525..d6445d4b 100644 --- a/shared/js/ui/modal/invite/Controller.ts +++ b/shared/js/ui/modal/invite/Controller.ts @@ -330,6 +330,7 @@ export function spawnInviteGenerator(target: ChannelEntry | ServerEntry) { } const modal = spawnModal("modal-invite", [ controller.events.generateIpcDescription(), controller.variables.generateConsumerDescription(), serverName ]); + controller.events.one("action_close", () => modal.destroy()); modal.getEvents().on("destroy", () => controller.destroy()); modal.show().then(undefined); } \ No newline at end of file