mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-09 14:58:28 +00:00
web/ProcessingQueue: use the heading component with the beta tag
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
This commit is contained in:
parent
06000cbc77
commit
5820736a31
@ -1,8 +1,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import { onNavigate } from "$app/navigation";
|
import { onNavigate } from "$app/navigation";
|
||||||
import type { SvelteComponent } from "svelte";
|
|
||||||
|
|
||||||
|
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 PopoverContainer from "$components/misc/PopoverContainer.svelte";
|
||||||
import ProcessingStatus from "$components/queue/ProcessingStatus.svelte";
|
import ProcessingStatus from "$components/queue/ProcessingStatus.svelte";
|
||||||
import ProcessingQueueItem from "$components/queue/ProcessingQueueItem.svelte";
|
import ProcessingQueueItem from "$components/queue/ProcessingQueueItem.svelte";
|
||||||
@ -17,10 +23,6 @@
|
|||||||
import IconPhoto from "@tabler/icons-svelte/IconPhoto.svelte";
|
import IconPhoto from "@tabler/icons-svelte/IconPhoto.svelte";
|
||||||
import IconVolume3 from "@tabler/icons-svelte/IconVolume3.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;
|
let popover: SvelteComponent;
|
||||||
$: expanded = false;
|
$: expanded = false;
|
||||||
|
|
||||||
@ -74,7 +76,12 @@
|
|||||||
expandStart="right"
|
expandStart="right"
|
||||||
>
|
>
|
||||||
<div id="processing-header">
|
<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">
|
<div class="header-buttons">
|
||||||
{#if queueLength > 0}
|
{#if queueLength > 0}
|
||||||
<button class="clear-button" on:click={nukeEntireQueue}>
|
<button class="clear-button" on:click={nukeEntireQueue}>
|
||||||
@ -137,11 +144,6 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-title {
|
|
||||||
font-size: 15px;
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-buttons {
|
.header-buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
Loading…
Reference in New Issue
Block a user