0.10.2-22 History/Downloads
This commit is contained in:
@@ -821,7 +821,8 @@ export default function DashboardPage({
|
||||
onAudiobookUpload,
|
||||
jobsRefreshToken,
|
||||
pendingExpandedJobId,
|
||||
onPendingExpandedJobHandled
|
||||
onPendingExpandedJobHandled,
|
||||
downloadSummary = null
|
||||
}) {
|
||||
const navigate = useNavigate();
|
||||
const [busy, setBusy] = useState(false);
|
||||
@@ -2694,7 +2695,7 @@ export default function DashboardPage({
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
<Card title="Skript- / Cron-Status">
|
||||
<Card title="Automatisierung">
|
||||
<div className="runtime-activity-meta pipeline-queue-meta">
|
||||
<Tag value={`Laufend: ${runtimeActiveItems.length}`} severity={runtimeActiveItems.length > 0 ? 'warning' : 'success'} />
|
||||
<Tag value={`Zuletzt: ${runtimeRecentItems.length}`} severity="info" />
|
||||
@@ -2852,6 +2853,27 @@ export default function DashboardPage({
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="dashboard-downloads-row">
|
||||
<h4>ZIP-Downloads</h4>
|
||||
<div className="dashboard-downloads-meta">
|
||||
{downloadSummary?.activeCount > 0 ? (
|
||||
<Tag icon="pi pi-spinner" value={`${downloadSummary.activeCount} aktiv`} severity="warning" />
|
||||
) : downloadSummary?.totalCount > 0 ? (
|
||||
<Tag icon="pi pi-check" value={downloadSummary.failedCount > 0 ? `Fertig (${downloadSummary.failedCount} fehlgeschlagen)` : `${downloadSummary.totalCount} fertig`} severity={downloadSummary.failedCount > 0 ? 'danger' : 'success'} />
|
||||
) : (
|
||||
<Tag icon="pi pi-download" value="Keine aktiven Downloads" severity="secondary" />
|
||||
)}
|
||||
<Button
|
||||
label="Downloads öffnen"
|
||||
icon="pi pi-arrow-right"
|
||||
size="small"
|
||||
severity="secondary"
|
||||
outlined
|
||||
onClick={() => navigate('/downloads')}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user