Skip to content

Build your personal knowledge base with Trilium Notes

client/options/backup: tweak the "Backup options" card

Adorian Dorana7b24adf38c0
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index d60bb0e209..f7bee599c1 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2075,9 +2075,9 @@
"download": "Download",
"options_title": "Backup options",
"enable_compression": "Enable compression",
- "enable_compression_description": "Makes each backup considerably smaller, at the cost of some time while it is written.",
+ "enable_compression_description": "Makes each backup smaller, at the cost of some time while it is written.",
"enable_encryption": "Enable encryption",
- "enable_encryption_description": "Locks each backup with a password of your own, so that nobody else can read it. Worth turning on when backups are written to a synced folder.",
+ "enable_encryption_description": "Locks each backup with a password of your own, so that nobody else can read it. Worth turning on when backups are written to a synced or shared folder.",
"no_keyring": "A keyring is not available in your system. That means the password cannot be securely stored, so encrypting backups is not available.",
"turn_on_encryption": "Turn on encryption",
"change_password": "Change password",
diff --git a/apps/client/src/widgets/type_widgets/options/backup.tsx b/apps/client/src/widgets/type_widgets/options/backup.tsx
index 1f63d01fdb..c96ba4dcde 100644
--- a/apps/client/src/widgets/type_widgets/options/backup.tsx
+++ b/apps/client/src/widgets/type_widgets/options/backup.tsx
@@ -209,14 +209,6 @@ export function BackupOptions() {
return (
<div className="options-section backup-options">
<Card heading={t("backup.options_title")}>
- <CardOption
- name="backup-compression-enabled"
- label={t("backup.enable_compression")}
- description={t("backup.enable_compression_description")}
- >
- <FormToggle currentValue={compressionEnabled} onChange={setCompressionEnabled} />
- </CardOption>
-
<CardOption
label={t("backup.enable_encryption")}
description={passphrase.available ? t("backup.enable_encryption_description") : t("backup.no_keyring")}
@@ -244,6 +236,14 @@ export function BackupOptions() {
/>
)}
</CardOption>
+
+ <CardOption
+ name="backup-compression-enabled"
+ label={t("backup.enable_compression")}
+ description={t("backup.enable_compression_description")}
+ >
+ <FormToggle currentValue={compressionEnabled} onChange={setCompressionEnabled} />
+ </CardOption>
</Card>
<BackupPasswordModal