mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-02-18 23:19:31 -05:00
Update 2FA TOTP tests (#1734)
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user