dispatch('goBack')} />
{#if asset.isOffline} dispatch('showDetail')} title="Asset Offline" /> {/if} {#if showMotionPlayButton} {#if isMotionPhotoPlaying} dispatch('stopMotionPhoto')} /> {:else} dispatch('playMotionPhoto')} /> {/if} {/if} {#if showZoomButton} 1 ? MagnifyMinusOutline : MagnifyPlusOutline} title="Zoom Image" on:click={() => { const zoomImage = new CustomEvent('zoomImage'); window.dispatchEvent(zoomImage); }} /> {/if} {#if showCopyButton} { const copyEvent = new CustomEvent('copyImage'); window.dispatchEvent(copyEvent); }} /> {/if} {#if showDownloadButton} dispatch('download')} title="Download" /> {/if} {#if showDetailButton} dispatch('showDetail')} title="Info" /> {/if} {#if isOwner} dispatch('favorite')} title="Favorite" /> {/if} {#if isOwner} {#if !asset.isReadOnly || !asset.isExternal} dispatch('delete')} title="Delete" /> {/if}
(isShowAssetOptions = false)}> {#if isShowAssetOptions} {#if showSlideshow} onMenuClick('playSlideShow')} text="Slideshow" /> {/if} onMenuClick('addToAlbum')} text="Add to Album" /> onMenuClick('addToSharedAlbum')} text="Add to Shared Album" /> {#if isOwner} dispatch('toggleArchive')} text={asset.isArchived ? 'Unarchive' : 'Archive'} /> onMenuClick('asProfileImage')} text="As profile picture" /> onJobClick(AssetJobName.RefreshMetadata)} text={api.getAssetJobName(AssetJobName.RefreshMetadata)} /> onJobClick(AssetJobName.RegenerateThumbnail)} text={api.getAssetJobName(AssetJobName.RegenerateThumbnail)} /> {#if asset.type === AssetTypeEnum.Video} onJobClick(AssetJobName.TranscodeVideo)} text={api.getAssetJobName(AssetJobName.TranscodeVideo)} /> {/if} {/if} {/if}
{/if}