Show error feedback when run deletion is blocked

Add optional error prop to DeleteConfirmModal and wire it into AdminRuns
so the backend's rejection message is displayed to the user.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Julian Tabel
2026-02-09 12:07:09 +01:00
parent f0307f0625
commit 924efa9073
2 changed files with 9 additions and 1 deletions

View File

@@ -120,8 +120,9 @@ export function AdminRuns() {
onSuccess: () => setDeleting(null),
})
}
onCancel={() => setDeleting(null)}
onCancel={() => { setDeleting(null); deleteRun.reset() }}
isDeleting={deleteRun.isPending}
error={deleteRun.error?.message ?? null}
/>
)}
</div>