Skip to content

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

Show loading state when deleting a credential (#771)

Leendert de Borstaf53abac0b35
diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
index 6282d17b5..523319983 100644
--- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
@@ -370,6 +370,8 @@ export default function AddEditCredentialScreen() : React.ReactNode {
* Delete the credential.
*/
onPress: async () : Promise<void> => {
+ setIsLoading(true);
+
await executeVaultMutation(async () => {
await dbContext.sqliteClient!.deleteCredentialById(id);
});
@@ -383,6 +385,8 @@ export default function AddEditCredentialScreen() : React.ReactNode {
});
}, 200);
+ setIsLoading(false);
+
/*
* Hard navigate back to the credentials list as the credential that was
* shown in the previous screen is now deleted.