Skip to content

High performance self-hosted photo and video management solution.

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

Ben13e093b3c27e
diff --git a/web/src/lib/components/elements/buttons/circle-icon-button.svelte b/web/src/lib/components/elements/buttons/circle-icon-button.svelte
index 1e8cc9937d..61e218fdba 100644
--- a/web/src/lib/components/elements/buttons/circle-icon-button.svelte
+++ b/web/src/lib/components/elements/buttons/circle-icon-button.svelte
@@ -38,5 +38,4 @@
on:click
>
<Icon path={icon} {size} ariaLabel={title} color="currentColor" />
- <slot />
</button>
diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 2368ea80ff..a53b6cf778 100644
--- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -459,27 +459,22 @@
{#if isOwned}
<div use:clickOutside on:outclick={() => (viewMode = ViewMode.VIEW)}>
- <CircleIconButton title="Album options" on:click={handleOpenAlbumOptions} icon={mdiDotsVertical}>
- {#if viewMode === ViewMode.ALBUM_OPTIONS}
- <ContextMenu {...contextMenuPosition}>
- <MenuOption
- icon={mdiImageOutline}
- text="Select album cover"
- on:click={() => (viewMode = ViewMode.SELECT_THUMBNAIL)}
- />
- <MenuOption
- icon={mdiCogOutline}
- text="Options"
- on:click={() => (viewMode = ViewMode.OPTIONS)}
- />
- <MenuOption
- icon={mdiDeleteOutline}
- text="Delete album"
- on:click={() => (viewMode = ViewMode.CONFIRM_DELETE)}
- />
- </ContextMenu>
- {/if}
- </CircleIconButton>
+ <CircleIconButton title="Album options" on:click={handleOpenAlbumOptions} icon={mdiDotsVertical} />
+ {#if viewMode === ViewMode.ALBUM_OPTIONS}
+ <ContextMenu {...contextMenuPosition}>
+ <MenuOption
+ icon={mdiImageOutline}
+ text="Select album cover"
+ on:click={() => (viewMode = ViewMode.SELECT_THUMBNAIL)}
+ />
+ <MenuOption icon={mdiCogOutline} text="Options" on:click={() => (viewMode = ViewMode.OPTIONS)} />
+ <MenuOption
+ icon={mdiDeleteOutline}
+ text="Delete album"
+ on:click={() => (viewMode = ViewMode.CONFIRM_DELETE)}
+ />
+ </ContextMenu>
+ {/if}
</div>
{/if}
{/if}