mirror of
https://github.com/immich-app/immich.git
synced 2026-03-09 03:37:22 +03:00
feat(web): rework context menus: add icons and reorder items (#8090)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
export let menuItem = false;
|
||||
export let removeFavorite: boolean;
|
||||
|
||||
$: text = removeFavorite ? 'Remove from Favorites' : 'Favorite';
|
||||
$: text = removeFavorite ? 'Remove from favorites' : 'Favorite';
|
||||
$: icon = removeFavorite ? mdiHeartMinusOutline : mdiHeartOutline;
|
||||
|
||||
let loading = false;
|
||||
@@ -57,7 +57,7 @@
|
||||
</script>
|
||||
|
||||
{#if menuItem}
|
||||
<MenuOption {text} on:click={handleFavorite} />
|
||||
<MenuOption {text} {icon} on:click={handleFavorite} />
|
||||
{/if}
|
||||
|
||||
{#if !menuItem}
|
||||
|
||||
Reference in New Issue
Block a user