mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 06:31:58 +00:00
fix(web): allow minimizing upload panel (#14663)
This commit is contained in:
parent
59d6af54c7
commit
6abe696d0b
1 changed files with 1 additions and 11 deletions
|
@ -17,19 +17,9 @@
|
||||||
|
|
||||||
let { stats, isDismissible, isUploading, remainingUploads } = uploadAssetsStore;
|
let { stats, isDismissible, isUploading, remainingUploads } = uploadAssetsStore;
|
||||||
|
|
||||||
const autoHide = () => {
|
|
||||||
if (!$isUploading && showDetail) {
|
|
||||||
showDetail = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($isUploading && !showDetail) {
|
|
||||||
showDetail = true;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if ($isUploading) {
|
if ($isUploading) {
|
||||||
autoHide();
|
showDetail = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue