File tree Expand file tree Collapse file tree 1 file changed +1
-28
lines changed
src/routes/(console)/project-[region]-[project]/storage/bucket-[bucket] Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Original file line number Diff line number Diff line change 6
6
import { createEventDispatcher } from ' svelte' ;
7
7
import { page } from ' $app/state' ;
8
8
import type { Models } from ' @appwrite.io/console' ;
9
- import { calculateSize } from ' $lib/helpers/sizeConvertion' ;
10
- import { Typography , Layout } from ' @appwrite.io/pink-svelte' ;
11
9
12
10
export let file: Models .File ;
13
11
export let showDelete = false ;
34
32
</script >
35
33
36
34
<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 >
63
36
</Confirm >
You can’t perform that action at this time.
0 commit comments