|
1 | 1 | <script lang="ts">
|
2 | 2 | import { goto, invalidate } from '$app/navigation';
|
3 | 3 | import { base } from '$app/paths';
|
4 |
| - import { Layout } from '@appwrite.io/pink-svelte'; |
5 | 4 | import { Submit, trackEvent, trackError } from '$lib/actions/analytics';
|
6 |
| - import { BoxAvatar, CardGrid } from '$lib/components'; |
| 5 | + import { BoxAvatar, CardGrid, Modal } from '$lib/components'; |
7 | 6 | import { Button, InputText } from '$lib/elements/forms';
|
8 | 7 | import { toLocaleDateTime } from '$lib/helpers/date';
|
9 | 8 | import { addNotification } from '$lib/stores/notifications';
|
|
12 | 11 | import { project, projectRegion } from '../store';
|
13 | 12 | import { organization } from '$lib/stores/organization';
|
14 | 13 | import { Dependencies } from '$lib/constants';
|
15 |
| - import Modal from '$lib/components/modal.svelte'; |
16 | 14 | let error: string;
|
17 | 15 | let showDelete = false;
|
18 | 16 | let name: string = null;
|
|
69 | 67 | <b>This action is irreversible.</b>
|
70 | 68 | </svelte:fragment>
|
71 | 69 |
|
72 |
| - <Layout.Stack gap="l"> |
73 |
| - <InputText |
74 |
| - label={`Enter "${$project.name}" to continue`} |
75 |
| - placeholder="Enter name" |
76 |
| - id="project-name" |
77 |
| - autofocus |
78 |
| - required |
79 |
| - bind:value={name} /> |
80 |
| - </Layout.Stack> |
| 70 | + <InputText |
| 71 | + label={`Enter "${$project.name}" to continue`} |
| 72 | + placeholder="Enter name" |
| 73 | + id="project-name" |
| 74 | + autofocus |
| 75 | + required |
| 76 | + bind:value={name} /> |
81 | 77 |
|
82 | 78 | <svelte:fragment slot="footer">
|
83 | 79 | <Button text on:click={() => (showDelete = false)}>Cancel</Button>
|
84 |
| - <Button danger submit disabled={name !== $project.name}>Delete</Button> |
| 80 | + <Button submissionLoader={true} danger submit disabled={name !== $project.name} |
| 81 | + >Delete</Button> |
85 | 82 | </svelte:fragment>
|
86 | 83 | </Modal>
|
0 commit comments