mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-15 11:25:17 +00:00
web/ProcessingQueue: make the clear button actually clear the queue
This commit is contained in:
parent
3f46395bd2
commit
eba8dc3767
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue