Added functionality to the close button

master
WolverinDEV 2021-02-19 23:09:15 +01:00
parent 80ea33db19
commit 2b96dc91aa
1 changed files with 1 additions and 0 deletions

View File

@ -330,6 +330,7 @@ export function spawnInviteGenerator(target: ChannelEntry | ServerEntry) {
} }
const modal = spawnModal("modal-invite", [ controller.events.generateIpcDescription(), controller.variables.generateConsumerDescription(), serverName ]); 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.getEvents().on("destroy", () => controller.destroy());
modal.show().then(undefined); modal.show().then(undefined);
} }