0.12.0-18 Tests and Converter Fixes
This commit is contained in:
@@ -13,6 +13,7 @@ import MetadataSelectionDialog from './MetadataSelectionDialog';
|
||||
import CdMetadataDialog from './CdMetadataDialog';
|
||||
import { CD_FORMATS, CD_FORMAT_SCHEMAS, getDefaultFormatOptions } from '../config/cdFormatSchemas';
|
||||
import { getStatusLabel, getStatusSeverity } from '../utils/statusPresentation';
|
||||
import { confirmModal } from '../utils/confirmModal';
|
||||
|
||||
const VIDEO_OUTPUT_FORMATS = [
|
||||
{ label: 'MKV', value: 'mkv' },
|
||||
@@ -1129,7 +1130,14 @@ export default function ConverterJobCard({
|
||||
const confirmText = statusUpper === 'READY_TO_START'
|
||||
? `${jobIdLabel} wirklich abbrechen?\nDer Job wird auf "Abgebrochen" gesetzt.`
|
||||
: `${jobIdLabel} wirklich abbrechen?`;
|
||||
if (!window.confirm(confirmText)) return;
|
||||
const confirmed = await confirmModal({
|
||||
header: 'Job abbrechen',
|
||||
message: confirmText,
|
||||
acceptLabel: 'Abbrechen',
|
||||
rejectLabel: 'Zurück',
|
||||
danger: true
|
||||
});
|
||||
if (!confirmed) return;
|
||||
setCancelBusy(true);
|
||||
try {
|
||||
await api.cancelConverterJob(job.id);
|
||||
|
||||
Reference in New Issue
Block a user