1
0
Fork 0
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:
Michel Heusschen 2024-12-12 17:13:42 +01:00 committed by GitHub
parent 59d6af54c7
commit 6abe696d0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>