Added functionality to the close button
parent
80ea33db19
commit
2b96dc91aa
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue