From 618f72b31d57ac17f475dbe983a31627cff3b96e Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 13 Feb 2025 19:04:12 +0100
Subject: frontend: Allow control-clicking to open the quick filter

This makes hircine's behaviour more consistent with standard browser
behaviour (that would also open a new tab when control-clicking).
---
 frontend/src/lib/components/Cardlet.svelte | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

(limited to 'frontend/src/lib/components/Cardlet.svelte')

diff --git a/frontend/src/lib/components/Cardlet.svelte b/frontend/src/lib/components/Cardlet.svelte
index d249cc8..d0c0509 100644
--- a/frontend/src/lib/components/Cardlet.svelte
+++ b/frontend/src/lib/components/Cardlet.svelte
@@ -1,30 +1,15 @@
 <script lang="ts">
-	import type { ComicFilter } from '$gql/graphql';
-	import { href } from '$lib/Navigation';
 	import type { Snippet } from 'svelte';
 
 	interface Props {
 		name: string;
 		title?: string | null;
-		filter?: keyof ComicFilter;
-		id?: number | string;
 		overlay?: Snippet;
 		onclick: (event: MouseEvent) => void;
+		onauxclick?: (event: MouseEvent) => void;
 	}
 
-	let {
-		name,
-		title = undefined,
-		filter = undefined,
-		id = undefined,
-		overlay,
-		onclick
-	}: Props = $props();
-
-	const onauxclick = (e: MouseEvent) => {
-		if (filter === undefined || id === undefined || e.button !== 1) return;
-		window.open(href('comics', { filter: { include: { [filter]: { all: [id] } } } }));
-	};
+	let { name, title = undefined, overlay, onclick, onauxclick = undefined }: Props = $props();
 </script>
 
 <button
-- 
cgit v1.2.3-2-gb3c3

