0.10.2-20 Buttons
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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) });
|
||||
|
||||
Reference in New Issue
Block a user