Update 2FA TOTP tests (#1734)

This commit is contained in:
Leendert de Borst
2026-02-18 21:00:41 +01:00
parent 0523176873
commit 1b0064fc75

View File

@@ -67,6 +67,10 @@ export function useVaultMutate(): {
* The background script will handle the full sync orchestration
* and will re-sync if mutations happened during the sync.
*/
// Show uploading indicator while sync is in progress
dbContext.setIsUploading(true);
sendMessage('FULL_VAULT_SYNC', {}, 'background').then(async (result: FullVaultSyncResult) => {
// If a merge happened, reload the database to show merged data
if (result.hasNewVault) {
@@ -76,6 +80,9 @@ export function useVaultMutate(): {
await dbContext.refreshSyncState();
}).catch((error) => {
console.error('Background sync error:', error);
}).finally(() => {
// Clear uploading indicator when sync completes
dbContext.setIsUploading(false);
});
}, [dbContext]);