File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
web/src/lib/components/photos-page Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 449449</section >
450450
451451<Portal target =" body" >
452- {#await import (' ../asset-viewer/asset-viewer.svelte' ) then AssetViewer }
453- <AssetViewer .default
454- {withStacked }
455- {assetStore }
456- asset ={$viewingAsset }
457- {isShared }
458- {album }
459- on:previous ={handlePrevious }
460- on:next ={handleNext }
461- on:close ={handleClose }
462- on:action ={({ detail : action }) => handleAction (action .type , action .asset )}
463- />
464- {/await }
452+ {#if $showAssetViewer }
453+ {#await import (' ../asset-viewer/asset-viewer.svelte' ) then AssetViewer }
454+ <AssetViewer .default
455+ {withStacked }
456+ {assetStore }
457+ asset ={$viewingAsset }
458+ {isShared }
459+ {album }
460+ on:previous ={handlePrevious }
461+ on:next ={handleNext }
462+ on:close ={handleClose }
463+ on:action ={({ detail : action }) => handleAction (action .type , action .asset )}
464+ />
465+ {/await }
466+ {/if }
465467</Portal >
466468
467469<style >
You can’t perform that action at this time.
0 commit comments