Fix data archives and restores failing on their own lock

startDataBackupRun already holds the backup run lock, but the archive
(createDataBackup) and restoreDataBackup took it again, so every run
failed a few seconds in with "Another backup or restore is already
running". The writer and the restore now take no lock of their own.

The run's notice (archiving, restoring, or why it failed) moves to its
own line under the actions row so the buttons don't shift, and archiving
reads in gray rather than the warning colour.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-25 09:24:55 +01:00
co-authored by Claude Opus 5.5
parent 410d05e0b1
commit b9a49ee09c
11 changed files with 141 additions and 117 deletions
@@ -94,5 +94,6 @@ export default function useDataBackupRun(): DataBackupRunState {
setError(undefined);
setRun(next);
},
report: setError,
};
}