1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(server, web): prevent reload when liking an asset (#7589)

pr feedback
This commit is contained in:
martin 2024-03-04 23:41:10 +01:00 committed by GitHub
parent 87c3d886ff
commit 935ddf3fbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,8 @@
let copyImageToClipboard: (source: string) => Promise<Blob>;
let canCopyImagesToClipboard: () => boolean;
const loadOriginalByDefault = $alwaysLoadOriginalFile && isWebCompatibleImage(asset);
$: if (imgElement) {
createZoomImageWheel(imgElement, {
maxZoom: 10,
@ -126,7 +128,7 @@
transition:fade={{ duration: haveFadeTransition ? 150 : 0 }}
class="flex h-full select-none place-content-center place-items-center"
>
{#await loadAssetData({ loadOriginal: $alwaysLoadOriginalFile ? isWebCompatibleImage(asset) : false })}
{#await loadAssetData({ loadOriginal: loadOriginalByDefault })}
<LoadingSpinner />
{:then}
<div bind:this={imgElement} class="h-full w-full">