diff options
Diffstat (limited to 'frontend/src/routes/artists')
-rw-r--r-- | frontend/src/routes/artists/+page.svelte | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/src/routes/artists/+page.svelte b/frontend/src/routes/artists/+page.svelte index c907470..9f0d893 100644 --- a/frontend/src/routes/artists/+page.svelte +++ b/frontend/src/routes/artists/+page.svelte @@ -4,6 +4,7 @@ import type { Artist } from '$gql/graphql'; import { ArtistSortLabel } from '$lib/Enums'; import { BasicFilterContext } from '$lib/Filter.svelte'; + import { quickComicFilter } from '$lib/Navigation'; import { toastFinally } from '$lib/Toasts'; import AddButton from '$lib/components/AddButton.svelte'; import Cardlet from '$lib/components/Cardlet.svelte'; @@ -53,6 +54,8 @@ .then((artist) => modals.open(EditArtist, { artist })) .catch(toastFinally); }; + + const quickFilter = (id: number) => quickComicFilter(id, 'artists'); </script> <Head section="artists" /> @@ -78,9 +81,9 @@ <main> <Cardlets> {#each artists.edges as { id, name }, index (id)} - <Selectable {index} {id} {edit}> - {#snippet children({ onclick, selected })} - <Cardlet {name} {onclick} filter="artists" {id}> + <Selectable {index} {id} onclick={edit} onauxclick={quickFilter}> + {#snippet children({ onclick, onauxclick, selected })} + <Cardlet {name} {onclick} {onauxclick}> {#snippet overlay()} <SelectionOverlay position="right" centered {selected} /> {/snippet} |