Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Removed Queue/History table badge.
nzbdav-deva483777c51d8
diff --git a/frontend/app/routes/queue/components/history-table/history-table.tsx b/frontend/app/routes/queue/components/history-table/history-table.tsxindex dedf3643..f1ef4689 100644--- a/frontend/app/routes/queue/components/history-table/history-table.tsx+++ b/frontend/app/routes/queue/components/history-table/history-table.tsx@@ -68,7 +68,7 @@ export function HistoryTable({ historySlots, totalHistoryCount, onIsSelectedChan);return (- <PageSection title={sectionTitle} badgeText={`${historySlots.length} of ${totalHistoryCount}`}>+ <PageSection title={sectionTitle}><PageTable headerCheckboxState={headerCheckboxState} onHeaderCheckboxChange={onSelectAll}>{historySlots.map(slot =><HistoryRowdiff --git a/frontend/app/routes/queue/components/page-section/page-section.tsx b/frontend/app/routes/queue/components/page-section/page-section.tsxindex a73f6412..0420e37d 100644--- a/frontend/app/routes/queue/components/page-section/page-section.tsx+++ b/frontend/app/routes/queue/components/page-section/page-section.tsx@@ -4,7 +4,7 @@ import type { ReactNode } from "react";export type PageTableProps = {title: ReactNode,subTitle?: ReactNode,- badgeText: string,+ badgeText?: string,children?: ReactNode,}@@ -14,9 +14,11 @@ export function PageSection({ title, subTitle, badgeText, children }: PageTableP<div className={styles.header}><div className={styles.titleRow}>{title}- <div className={styles.badgeText}>- {badgeText}- </div>+ {badgeText &&+ <div className={styles.badgeText}>+ {badgeText}+ </div>+ }</div>{subTitle}</div>diff --git a/frontend/app/routes/queue/components/queue-table/queue-table.tsx b/frontend/app/routes/queue/components/queue-table/queue-table.tsxindex 79aa3c17..bcf6be33 100644--- a/frontend/app/routes/queue/components/queue-table/queue-table.tsx+++ b/frontend/app/routes/queue/components/queue-table/queue-table.tsx@@ -117,7 +117,7 @@ export function QueueTable({);return (- <PageSection title={sectionTitle} subTitle={sectionSubTitle} badgeText={`${queueSlots.length} of ${totalQueueCount}`}>+ <PageSection title={sectionTitle} subTitle={sectionSubTitle}>{queueSlots?.length == 0 ? (<EmptyQueue />) : (