diff --git a/src/renderer/src/features/installations/pages/ManageInstallationBackups.tsx b/src/renderer/src/features/installations/pages/ManageInstallationBackups.tsx index 7f975f66..50e2eae2 100644 --- a/src/renderer/src/features/installations/pages/ManageInstallationBackups.tsx +++ b/src/renderer/src/features/installations/pages/ManageInstallationBackups.tsx @@ -96,6 +96,8 @@ function ManageInstallationBackups(): JSX.Element { if (!installation) return addNotification(t("features.installations.noInstallationFound"), "error") if (!backup) return addNotification(t("features.backups.cantDeleteWhileinUse"), "error") + configDispatch({ type: CONFIG_ACTIONS.EDIT_INSTALLATION_BACKUP, payload: { id: installation.id, backupId: backup.id, updates: { _deleting: true } } }) + const result = await deleteInstallationBackup(createBackupDeletionPorts(), { backup: toBackupSnapshot(backup) }) if (result.ok) { @@ -103,6 +105,8 @@ function ManageInstallationBackups(): JSX.Element { return addNotification(t("features.backups.backupDeletedSuccesfully"), "success") } + configDispatch({ type: CONFIG_ACTIONS.EDIT_INSTALLATION_BACKUP, payload: { id: installation.id, backupId: backup.id, updates: { _deleting: false } } }) + const { messageKey, logged } = describeBackupDeletionFailure(result.reason) if (logged) {