mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
fix(server, web): prevent reload when liking an asset (#7589)
pr feedback
This commit is contained in:
parent
87c3d886ff
commit
935ddf3fbd
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user