dispatch('back')} />
{#if showShareButton} dispatch('showShareModal')} title={$t('share')} /> {/if} {#if asset.isOffline} dispatch('showDetail')} title={$t('asset_offline')} /> {/if} {#if showMotionPlayButton} {#if isMotionPhotoPlaying} dispatch('stopMotionPhoto')} /> {:else} dispatch('playMotionPhoto')} /> {/if} {/if} {#if showZoomButton} 1 ? mdiMagnifyMinusOutline : mdiMagnifyPlusOutline} title={$t('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 !isOwner && showDownloadButton} dispatch('download')} title={$t('download')} /> {/if} {#if showDetailButton} dispatch('showDetail')} title={$t('info')} /> {/if} {#if isOwner} dispatch('favorite')} title={asset.isFavorite ? $t('unfavorite') : $t('favorite')} /> {/if} {#if isOwner} dispatch('delete')} title={$t('delete')} />
(isShowAssetOptions = false), onEscape: () => (isShowAssetOptions = false), }} > {#if isShowAssetOptions} {#if showSlideshow} onMenuClick('playSlideShow')} text={$t('slideshow')} /> {/if} {#if showDownloadButton} onMenuClick('download')} text={$t('download')} /> {/if} {#if asset.isTrashed} onMenuClick('restoreAsset')} text={$t('restore')} /> {:else} onMenuClick('addToAlbum')} text={$t('add_to_album')} /> onMenuClick('addToSharedAlbum')} text={$t('add_to_shared_album')} /> {/if} {#if isOwner} {#if hasStackChildren} onMenuClick('unstack')} text={$t('unstack')} /> {/if} {#if album} onMenuClick('setAsAlbumCover')} /> {/if} {#if asset.type === AssetTypeEnum.Image} onMenuClick('asProfileImage')} text={$t('set_as_profile_picture')} /> {/if} onMenuClick('toggleArchive')} icon={asset.isArchived ? mdiArchiveArrowUpOutline : mdiArchiveArrowDownOutline} text={asset.isArchived ? $t('unarchive') : $t('archive')} /> openFileUploadDialog({ multiple: false, assetId: asset.id })} text={$t('replace_with_upload')} />
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}