mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-03 22:33:08 +01:00
fix (thumbnail): thumbnail refresh
whenever uploading something with files and folders, the thumbnails
would flash on and off all the time. The commit
a0540eecae only address part of the issue,
this commit take care of the other bits
This commit is contained in:
parent
93908f8c6d
commit
08cd2dbecb
1 changed files with 2 additions and 1 deletions
|
|
@ -111,7 +111,8 @@ export function mkdir(path) {
|
|||
* @override
|
||||
*/
|
||||
async afterSuccess() {
|
||||
removeLoading(virtualFiles$, basepath, dirname);
|
||||
if (basepath === currentPath()) removeLoading(virtualFiles$, basepath, dirname);
|
||||
else onDestroy(() => removeLoading(virtualFiles$, basepath, dirname));
|
||||
onDestroy(() => statePop(virtualFiles$, basepath, dirname));
|
||||
await fscache().update(basepath, ({ files = [], ...rest }) => ({
|
||||
files: files.concat([file]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue