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:
@@ -94,5 +94,6 @@ export default function useDataBackupRun(): DataBackupRunState {
|
||||
setError(undefined);
|
||||
setRun(next);
|
||||
},
|
||||
report: setError,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user