From 1b0064fc75762faebcdee334218ccd64e4d72764 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Wed, 18 Feb 2026 21:00:41 +0100 Subject: [PATCH] Update 2FA TOTP tests (#1734) --- .../src/entrypoints/popup/hooks/useVaultMutate.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/browser-extension/src/entrypoints/popup/hooks/useVaultMutate.ts b/apps/browser-extension/src/entrypoints/popup/hooks/useVaultMutate.ts index 00f82905a..e6a4f10fc 100644 --- a/apps/browser-extension/src/entrypoints/popup/hooks/useVaultMutate.ts +++ b/apps/browser-extension/src/entrypoints/popup/hooks/useVaultMutate.ts @@ -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]);