dispatch('back')} />
{#if showShareButton} dispatch('showShareModal')} title="Share" /> {/if} {#if asset.isOffline} dispatch('showDetail')} title="Asset Offline" /> {/if} {#if showMotionPlayButton} {#if isMotionPhotoPlaying} dispatch('stopMotionPhoto')} /> {:else} dispatch('playMotionPhoto')} /> {/if} {/if} {#if showZoomButton} 1 ? mdiMagnifyMinusOutline : mdiMagnifyPlusOutline} 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 showDetailButton} dispatch('showDetail')} title="Info" /> {/if} {#if isOwner} dispatch('favorite')} title={asset.isFavorite ? 'Unfavorite' : '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} {#if showDownloadButton} onMenuClick('download')} text="Download" /> {/if} onMenuClick('addToAlbum')} text="Add to album" /> onMenuClick('addToSharedAlbum')} text="Add to shared album" /> {#if isOwner} {#if hasStackChildren} onMenuClick('unstack')} text="Un-stack" /> {/if} {#if album} onMenuClick('setAsAlbumCover')} /> {/if} {#if asset.type === AssetTypeEnum.Image} onMenuClick('asProfileImage')} text="Set as profile picture" /> {/if} dispatch('toggleArchive')} icon={asset.isArchived ? mdiArchiveArrowUpOutline : mdiArchiveArrowDownOutline} text={asset.isArchived ? 'Unarchive' : 'Archive'} />
onJobClick(AssetJobName.RefreshMetadata)} text={getAssetJobName(AssetJobName.RefreshMetadata)} /> onJobClick(AssetJobName.RegenerateThumbnail)} text={getAssetJobName(AssetJobName.RegenerateThumbnail)} /> {#if asset.type === AssetTypeEnum.Video} onJobClick(AssetJobName.TranscodeVideo)} text={getAssetJobName(AssetJobName.TranscodeVideo)} /> {/if} {/if}
{/if}
{/if}