mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-17 16:07:18 +02:00
fix missing await on loading domains
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -240,8 +240,9 @@
|
||||
return action;
|
||||
};
|
||||
|
||||
const openCreateModal = () => {
|
||||
const openCreateModal = async () => {
|
||||
modalMode = 'create';
|
||||
await refreshDomains();
|
||||
isModalVisible = true;
|
||||
};
|
||||
|
||||
@@ -375,7 +376,7 @@
|
||||
<HeadTitle title="Emails" />
|
||||
<main>
|
||||
<Headline>Emails</Headline>
|
||||
<BigButton on:click={openCreateModal}>New Email</BigButton>
|
||||
<BigButton on:click={async () => await openCreateModal()}>New Email</BigButton>
|
||||
<Table
|
||||
columns={[
|
||||
{ column: 'Name', size: 'large' },
|
||||
|
||||
Reference in New Issue
Block a user