1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

chore(web): remove CircleIconButton slot (#9131)

This commit is contained in:
Ben 2024-04-28 15:20:16 +00:00 committed by GitHub
parent 2648032163
commit 13e093b3c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 22 deletions

View File

@ -38,5 +38,4 @@
on:click
>
<Icon path={icon} {size} ariaLabel={title} color="currentColor" />
<slot />
</button>

View File

@ -459,7 +459,7 @@
{#if isOwned}
<div use:clickOutside on:outclick={() => (viewMode = ViewMode.VIEW)}>
<CircleIconButton title="Album options" on:click={handleOpenAlbumOptions} icon={mdiDotsVertical}>
<CircleIconButton title="Album options" on:click={handleOpenAlbumOptions} icon={mdiDotsVertical} />
{#if viewMode === ViewMode.ALBUM_OPTIONS}
<ContextMenu {...contextMenuPosition}>
<MenuOption
@ -467,11 +467,7 @@
text="Select album cover"
on:click={() => (viewMode = ViewMode.SELECT_THUMBNAIL)}
/>
<MenuOption
icon={mdiCogOutline}
text="Options"
on:click={() => (viewMode = ViewMode.OPTIONS)}
/>
<MenuOption icon={mdiCogOutline} text="Options" on:click={() => (viewMode = ViewMode.OPTIONS)} />
<MenuOption
icon={mdiDeleteOutline}
text="Delete album"
@ -479,7 +475,6 @@
/>
</ContextMenu>
{/if}
</CircleIconButton>
</div>
{/if}
{/if}