mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: file not updating correctly
This commit is contained in:
1 parent
fb9a574e45
commit
8841bcd3bd
1 file changed
+10
@@ -9,6 +9,16 @@
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { bytesToSize } from '$lib/helpers/sizeConvertion';
|
||||
import Delete from './_deleteFile.svelte';
|
||||
import { page } from '$app/stores';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
onMount(async () => {
|
||||
let bucketId = $page.params.bucket;
|
||||
let fileId = $page.params.file;
|
||||
await file.load(bucketId, fileId);
|
||||
fileRead = $file.response?.$read;
|
||||
fileWrite = $file.response?.$write;
|
||||
});
|
||||
|
||||
let showDelete = false;
|
||||
let fileRead = $file.response?.$read;
|
||||
|
||||
Reference in new issue
Block a user