Skip to content

Commit 439617a

Browse files
committed
resolve file deletion navigation issue and chnaged delete model ui back to original
1 parent 7057db8 commit 439617a

File tree

1 file changed

+1
-28
lines changed
  • src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]

1 file changed

+1
-28
lines changed

src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket]/deleteFile.svelte

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import { createEventDispatcher } from 'svelte';
77
import { page } from '$app/state';
88
import type { Models } from '@appwrite.io/console';
9-
import { calculateSize } from '$lib/helpers/sizeConvertion';
10-
import { Typography, Layout } from '@appwrite.io/pink-svelte';
119
1210
export let file: Models.File;
1311
export let showDelete = false;
@@ -34,30 +32,5 @@
3432
</script>
3533

3634
<Confirm {onSubmit} title="Delete file" bind:open={showDelete} bind:error>
37-
<Layout.Stack gap="l">
38-
<Typography.Text variant="m-400">
39-
Are you sure you want to delete the following file?
40-
</Typography.Text>
41-
42-
<div
43-
class="u-flex u-flex-wrap u-gap-8 u-main-space-between u-cross-center u-padding-16 u-border u-radius">
44-
<Layout.Stack gap="xs">
45-
<Typography.Text variant="m-600" data-private>{file.name}</Typography.Text>
46-
<Layout.Stack direction="row" gap="s" alignItems="center">
47-
<Typography.Text variant="m-400" class="u-color-text-secondary">
48-
{file.mimeType}
49-
</Typography.Text>
50-
<span class="u-color-text-secondary">•</span>
51-
<Typography.Text variant="m-400" class="u-color-text-secondary">
52-
{calculateSize(file.sizeOriginal)}
53-
</Typography.Text>
54-
</Layout.Stack>
55-
</Layout.Stack>
56-
</div>
57-
58-
<Typography.Text variant="m-400" class="u-color-text-secondary">
59-
This action cannot be undone. The file will be permanently deleted from your storage
60-
bucket.
61-
</Typography.Text>
62-
</Layout.Stack>
35+
<p>Are you sure you want to delete <b>{file.name}</b>?</p>
6336
</Confirm>

0 commit comments

Comments
 (0)