diff --git a/src/lib/components/FavoritesEditModal.svelte b/src/lib/components/FavoritesEditModal.svelte new file mode 100644 index 000000000..83298bf52 --- /dev/null +++ b/src/lib/components/FavoritesEditModal.svelte @@ -0,0 +1,368 @@ + + + + {#snippet children()} + + Icon + Choose an icon for the Favorites page header + + + {#each presetIcons as preset} + selectPreset(preset.id)} + title={preset.label} + > + + + {/each} + + + + + + Upload Custom Image + + {#if useCustomImage && customIconPath} + {customIconPath.split('/').pop()} + {/if} + + + + + Tab Order + Reorder tabs in the Favorites page navigation + + + {#each tabOrder as tab, index} + + + + + {tabLabels[tab] || tab} + + moveUp(index)} + disabled={index === 0} + title="Move up" + > + ↑ + + moveDown(index)} + disabled={index === tabOrder.length - 1} + title="Move down" + > + ↓ + + + + {/each} + + + {/snippet} + + {#snippet footer()} + + + Cancel + + + {saving ? 'Saving...' : 'Save'} + + + {/snippet} + + + diff --git a/src/lib/components/views/FavoritesView.svelte b/src/lib/components/views/FavoritesView.svelte index d86844c1b..df5dd32d5 100644 --- a/src/lib/components/views/FavoritesView.svelte +++ b/src/lib/components/views/FavoritesView.svelte @@ -1,12 +1,14 @@
Choose an icon for the Favorites page header
Reorder tabs in the Favorites page navigation