From 273aa2b9acc08611dc5efed94b44f76c9d8fc821 Mon Sep 17 00:00:00 2001 From: Nico <47644445+nicotsx@users.noreply.github.com> Date: Sun, 25 Jan 2026 10:20:23 +0100 Subject: [PATCH] feat: add a confirm dialog before stopping the backup (#409) --- .../backups/components/schedule-summary.tsx | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/app/client/modules/backups/components/schedule-summary.tsx b/app/client/modules/backups/components/schedule-summary.tsx index 15aee695..338a7aa6 100644 --- a/app/client/modules/backups/components/schedule-summary.tsx +++ b/app/client/modules/backups/components/schedule-summary.tsx @@ -35,6 +35,7 @@ export const ScheduleSummary = (props: Props) => { props; const [showDeleteConfirm, setShowDeleteConfirm] = useState(false); const [showForgetConfirm, setShowForgetConfirm] = useState(false); + const [showStopConfirm, setShowStopConfirm] = useState(false); const runForget = useMutation({ ...runForgetMutation(), @@ -78,6 +79,12 @@ export const ScheduleSummary = (props: Props) => { runForget.mutate({ path: { scheduleId: schedule.id.toString() } }); }; + const handleConfirmStop = () => { + setShowStopConfirm(false); + if (schedule.lastBackupStatus !== "in_progress") return; + handleStopBackup(); + }; + return (