1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

Cleanup tool

This commit is contained in:
Bernd Schoolmann
2026-01-09 10:33:02 +01:00
parent fcc2844a16
commit d3e70c7a16

View File

@@ -94,9 +94,15 @@ export class DataRecoveryComponent {
}
this.hasStarted.set(true);
this.status.set(StepStatus.InProgress);
this.diagnosticsCompleted.set(false);
await this.runDiagnosticsInternal();
this.status.set(StepStatus.Completed);
this.diagnosticsCompleted.set(true);
};
private async runDiagnosticsInternal() {
this.logger.record("Starting diagnostics...");
this.workingData = {
userId: null,
@@ -107,18 +113,6 @@ export class DataRecoveryComponent {
folders: [],
};
await this.runDiagnosticsInternal();
this.status.set(StepStatus.Completed);
this.diagnosticsCompleted.set(true);
};
private async runDiagnosticsInternal() {
if (!this.workingData) {
this.logger.record("No working data available");
return;
}
const currentSteps = this.steps();
let hasAnyFailures = false;
@@ -182,7 +176,10 @@ export class DataRecoveryComponent {
// Re-run diagnostics after recovery
this.logger.record("Re-running diagnostics to verify recovery...");
this.diagnosticsCompleted.set(false);
await this.runDiagnosticsInternal();
this.diagnosticsCompleted.set(true);
this.status.set(StepStatus.Completed);
} catch (error) {