Added functionality to the close button
This commit is contained in:
parent
80ea33db19
commit
2b96dc91aa
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue