0.12.0-18 Tests and Converter Fixes

This commit is contained in:
2026-03-31 12:51:32 +00:00
parent aea8fa6772
commit 5aa65ad4c1
24 changed files with 2281 additions and 249 deletions
+9 -1
View File
@@ -6,6 +6,7 @@ import { Dropdown } from 'primereact/dropdown';
import { InputSwitch } from 'primereact/inputswitch';
import { Toast } from 'primereact/toast';
import { api } from '../api/client';
import { confirmModal } from '../utils/confirmModal';
// ── Hilfsfunktionen ──────────────────────────────────────────────────────────
@@ -251,7 +252,14 @@ export default function CronJobsTab({ onWsMessage }) {
// ── Löschen ──────────────────────────────────────────────────────────────────
async function handleDelete(job) {
if (!window.confirm(`Cronjob "${job.name}" wirklich löschen?`)) return;
const confirmed = await confirmModal({
header: 'Cronjob löschen',
message: `Cronjob "${job.name}" wirklich löschen?`,
acceptLabel: 'Löschen',
rejectLabel: 'Abbrechen',
danger: true
});
if (!confirmed) return;
setBusyId(job.id);
try {
await api.deleteCronJob(job.id);