0.10.2-20 Buttons

This commit is contained in:
2026-03-17 13:58:29 +00:00
parent 900faf773a
commit b8cccd0045
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -497,7 +497,7 @@ export default function JobDetailDialog({
&& Number(job?.encode_review_confirmed || 0) === 1
);
const hasRestartInput = Boolean(job?.encode_input_path || job?.raw_path || job?.encodePlan?.encodeInputPath);
const canRestartEncode = Boolean(hasConfirmedPlan && hasRestartInput && !running);
const canRestartEncode = Boolean(hasConfirmedPlan && hasRestartInput && !running && job?.rawStatus?.exists);
const canRestartReview = Boolean(
job?.rawStatus?.exists
&& job?.rawStatus?.isEmpty !== true
@@ -944,7 +944,7 @@ export default function JobDetailDialog({
) : null}
<div className="action-item">
<Button
label={isAudiobook ? 'Quelldatei neu einlesen' : 'Quelldatei neu analysieren'}
label="Neustart"
icon="pi pi-sync"
severity="info"
size="small"
+4 -1
View File
@@ -920,7 +920,10 @@ export default function HistoryPage({ refreshToken = 0 }) {
infoItems.push({ key: 'author', label: 'Autor', value: audiobookDetails.author });
}
if (audiobookDetails.narrator) {
infoItems.push({ key: 'narrator', label: 'Sprecher', value: audiobookDetails.narrator });
const narratorShort = audiobookDetails.narrator.length > 48
? `${audiobookDetails.narrator.slice(0, 48).trimEnd()}`
: audiobookDetails.narrator;
infoItems.push({ key: 'narrator', label: 'Sprecher', value: narratorShort });
}
if (audiobookDetails.chapterCount > 0) {
infoItems.push({ key: 'chapters', label: 'Kapitel', value: String(audiobookDetails.chapterCount) });