feat: start work on create event

This commit is contained in:
Arman committed 2022-09-26 15:00:19 +02:00
1 parent 1cb98c6f8d
commit c3c95d7097
1 file changed
+10
@@ -3,6 +3,7 @@
import { Modal } from '$lib/components';
import { createEventDispatcher } from 'svelte';
import { addNotification } from '$lib/stores/notifications';
import { Pill } from '$lib/elements';
export let showCreate = false;
@@ -19,12 +20,21 @@
});
}
};
const services = ['buckets', 'database', 'functions', 'teams', 'users'];
// const databases = ['collections', 'documents'];
</script>
<Form on:submit={create}>
<Modal bind:show={showCreate} size="big">
<svelte:fragment slot="header">Create Event</svelte:fragment>
<div class="u-flex u-gap-8">
{#each services as service}
<Pill button on:click>{service}</Pill>
{/each}
</div>
<svelte:fragment slot="footer">
<Button secondary on:click={() => (showCreate = false)}>Cancel</Button>
<Button submit>Create</Button>