Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Load security page components async (#190)

Leendert de Borst26b1c4e04456
diff --git a/src/AliasVault.Client/Main/Pages/Settings/Security/Security.razor b/src/AliasVault.Client/Main/Pages/Settings/Security/Security.razor
index 3ac386699..0e7d8977e 100644
--- a/src/AliasVault.Client/Main/Pages/Settings/Security/Security.razor
+++ b/src/AliasVault.Client/Main/Pages/Settings/Security/Security.razor
@@ -50,11 +50,11 @@
/// <returns>A task representing the asynchronous operation.</returns>
private async Task LoadData()
{
- // Currently with SQLite, we have to load the data sequentially as otherwise we get database locks.
- // When switched over to PostgreSQL, we can load the data concurrently.
- await TwoFactorSection!.LoadData();
- await QuickVaultUnlockSection!.LoadData();
- await SessionsSection!.LoadData();
- await RecentAuthLogsSection!.LoadData();
+ await Task.WhenAll(
+ TwoFactorSection!.LoadData(),
+ QuickVaultUnlockSection!.LoadData(),
+ SessionsSection!.LoadData(),
+ RecentAuthLogsSection!.LoadData()
+ );
}
}