web/ProcessingQueue: make the clear button actually clear the queue

This commit is contained in:
wukko 2024-12-18 17:10:30 +06:00
parent 3f46395bd2
commit eba8dc3767
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -18,7 +18,7 @@
import IconVolume3 from "@tabler/icons-svelte/IconVolume3.svelte";
import settings from "$lib/state/settings";
import { addToQueue, queue } from "$lib/state/queue";
import { addToQueue, nukeEntireQueue, queue } from "$lib/state/queue";
import type { QueueItem } from "$lib/types/queue";
let popover: SvelteComponent;
@ -77,7 +77,7 @@
<div class="header-title">{$t("queue.title")}</div>
<div class="header-buttons">
{#if queueLength > 0}
<button class="clear-button">
<button class="clear-button" on:click={nukeEntireQueue}>
<IconX />
{$t("button.clear")}
</button>