1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

feat: show delete album option in empty album (#14271)

* fix: show delete album option in empty album

* remove unused code
This commit is contained in:
Alex 2024-11-20 17:17:21 -06:00 committed by GitHub
parent 9a9d40c193
commit 6ec94f94f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -500,9 +500,11 @@
{#if album.assetCount > 0} {#if album.assetCount > 0}
<CircleIconButton title={$t('slideshow')} onclick={handleStartSlideshow} icon={mdiPresentationPlay} /> <CircleIconButton title={$t('slideshow')} onclick={handleStartSlideshow} icon={mdiPresentationPlay} />
<CircleIconButton title={$t('download')} onclick={handleDownloadAlbum} icon={mdiFolderDownloadOutline} /> <CircleIconButton title={$t('download')} onclick={handleDownloadAlbum} icon={mdiFolderDownloadOutline} />
{/if}
{#if isOwned} {#if isOwned}
<ButtonContextMenu icon={mdiDotsVertical} title={$t('album_options')}> <ButtonContextMenu icon={mdiDotsVertical} title={$t('album_options')}>
{#if album.assetCount > 0}
<MenuOption <MenuOption
icon={mdiImageOutline} icon={mdiImageOutline}
text={$t('select_album_cover')} text={$t('select_album_cover')}
@ -513,10 +515,11 @@
text={$t('options')} text={$t('options')}
onClick={() => (viewMode = AlbumPageViewMode.OPTIONS)} onClick={() => (viewMode = AlbumPageViewMode.OPTIONS)}
/> />
{/if}
<MenuOption icon={mdiDeleteOutline} text={$t('delete_album')} onClick={() => handleRemoveAlbum()} /> <MenuOption icon={mdiDeleteOutline} text={$t('delete_album')} onClick={() => handleRemoveAlbum()} />
</ButtonContextMenu> </ButtonContextMenu>
{/if} {/if}
{/if}
{#if isCreatingSharedAlbum && album.albumUsers.length === 0} {#if isCreatingSharedAlbum && album.albumUsers.length === 0}
<Button <Button