Support updated servers backup route schema, remove backup locking (#5053)

* Use backup physical_id for progress updates matching

* Remove locking

* Fmt
This commit is contained in:
François-Xavier Talbot
2026-01-05 20:03:46 -05:00
committed by GitHub
parent 2e9730ea1f
commit 7eb1b38cc7
8 changed files with 22 additions and 136 deletions

View File

@@ -87,7 +87,7 @@ const restoreBackup = () => {
restoreMutation.mutate(currentBackup.value.id, {
onSuccess: () => {
// Optimistically update backupsState to show restore in progress immediately
ctx.backupsState.set(currentBackup.value!.id, {
ctx.backupsState.set(currentBackup.value!.physical_id ?? currentBackup.value!.id, {
restore: { progress: 0, state: 'ongoing' },
})
modal.value?.hide()