Skip to content

Commit

Permalink
web/ProcessingQueue: use the heading component with the beta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Dec 19, 2024
1 parent 06000cb commit 5820736
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions web/src/components/queue/ProcessingQueue.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<script lang="ts">
import { t } from "$lib/i18n/translations";
import { onNavigate } from "$app/navigation";
import settings from "$lib/state/settings";
import { addToQueue, nukeEntireQueue, queue } from "$lib/state/queue";
import type { SvelteComponent } from "svelte";
import type { QueueItem } from "$lib/types/queue";
import SectionHeading from "$components/misc/SectionHeading.svelte";
import PopoverContainer from "$components/misc/PopoverContainer.svelte";
import ProcessingStatus from "$components/queue/ProcessingStatus.svelte";
import ProcessingQueueItem from "$components/queue/ProcessingQueueItem.svelte";
Expand All @@ -17,10 +23,6 @@
import IconPhoto from "@tabler/icons-svelte/IconPhoto.svelte";
import IconVolume3 from "@tabler/icons-svelte/IconVolume3.svelte";
import settings from "$lib/state/settings";
import { addToQueue, nukeEntireQueue, queue } from "$lib/state/queue";
import type { QueueItem } from "$lib/types/queue";
let popover: SvelteComponent;
$: expanded = false;
Expand Down Expand Up @@ -74,7 +76,12 @@
expandStart="right"
>
<div id="processing-header">
<div class="header-title">{$t("queue.title")}</div>
<SectionHeading
title={$t("queue.title")}
sectionId="queue"
beta
nolink
/>
<div class="header-buttons">
{#if queueLength > 0}
<button class="clear-button" on:click={nukeEntireQueue}>
Expand Down Expand Up @@ -137,11 +144,6 @@
align-items: center;
}
.header-title {
font-size: 15px;
font-weight: 500;
}
.header-buttons {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit 5820736

Please sign in to comment.