mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
25 lines
750 B
Svelte
25 lines
750 B
Svelte
<script lang="ts">
|
|
import { Modal } from '$lib/components';
|
|
import { Button } from '$lib/elements/forms';
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
export let show = false;
|
|
const dispatch = createEventDispatcher();
|
|
|
|
function handleSubmit() {
|
|
dispatch('exit');
|
|
}
|
|
</script>
|
|
|
|
<Modal bind:show on:submit={handleSubmit} warning>
|
|
<svelte:fragment slot="header">Exit Process</svelte:fragment>
|
|
<p>
|
|
Are you sure you want to exit from <slot />? All data will be deleted. This action is
|
|
irreversible.
|
|
</p>
|
|
<svelte:fragment slot="footer">
|
|
<Button text on:click={() => (show = false)}>Cancel</Button>
|
|
<Button secondary submit>Exit</Button>
|
|
</svelte:fragment>
|
|
</Modal>
|