Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update backup location UI and messages

Prateek Sunal3075a612b16e
diff --git a/mobile/apps/auth/lib/l10n/arb/app_en.arb b/mobile/apps/auth/lib/l10n/arb/app_en.arb
index 23b2001ae7..6d448b7802 100644
--- a/mobile/apps/auth/lib/l10n/arb/app_en.arb
+++ b/mobile/apps/auth/lib/l10n/arb/app_en.arb
@@ -551,6 +551,7 @@
"backupSecurityNotice": "This encrypted backup holds your 2FA keys. If lost, you may not be able to recover your accounts. Keep it safe!",
"locationUpdatedAndBackupCreated": "Location updated and initial backup created!",
"initialBackupCreated": "Initial backup created!",
+ "backupCreated": "Backup created!",
"passwordTooShort": "Password must be at least 8 characters long.",
"noDefaultBackupFolder": "Could not create default backup folder.",
"backupLocationChoiceDescription": "Where do you want to save your backups?",
@@ -565,7 +566,6 @@
"clearBackupFolder": "Clear backup folder",
"clearBackupPassword": "Clear backup password",
"selectBackupFolder": "Select a backup folder",
- "backupLocation": "Backup location",
"setBackupFolder": "Set backup folder",
"backupPasswordHint": "Your backup will be encrypted with this password.",
"authToUpdateBackupPassword": "Authenticate to update backup password",
diff --git a/mobile/apps/auth/lib/ui/settings/data/local_backup/local_backup_experience.dart b/mobile/apps/auth/lib/ui/settings/data/local_backup/local_backup_experience.dart
index a774cc531d..1b4e614e4f 100644
--- a/mobile/apps/auth/lib/ui/settings/data/local_backup/local_backup_experience.dart
+++ b/mobile/apps/auth/lib/ui/settings/data/local_backup/local_backup_experience.dart
@@ -184,7 +184,7 @@ class _LocalBackupExperienceState extends State<LocalBackupExperience> {
return;
}
if (showSnackBar) {
- _showSnackBar(context.l10n.initialBackupCreated);
+ _showSnackBar(context.l10n.backupCreated);
}
} finally {
if (mounted) {
diff --git a/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dart b/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dart
index a6e2fc618b..34d771db6f 100644
--- a/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dart
+++ b/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dart
@@ -240,41 +240,19 @@ class _BackupLocationCard extends StatelessWidget {
horizontal: 16,
vertical: 12,
),
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Expanded(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(
- context.l10n.backupLocation,
- style: textTheme.body,
- ),
- const SizedBox(height: 6),
- _LocationPreview(controller: controller),
- ],
- ),
- ),
- TextButton(
- onPressed: () async {
- await controller.changeLocation();
- },
- style: TextButton.styleFrom(
- backgroundColor: colorScheme.fillMuted,
- shape: const StadiumBorder(),
- padding: const EdgeInsets.symmetric(
- horizontal: 18,
- vertical: 12,
- ),
- minimumSize: const Size(0, 44),
- ),
- child: Text(
+ child: SizedBox(
+ width: double.infinity,
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(
context.l10n.setBackupFolder,
- style: textTheme.smallBold,
+ style: textTheme.body,
),
- ),
- ],
+ const SizedBox(height: 6),
+ _LocationPreview(controller: controller),
+ ],
+ ),
),
),
),