Skip to content

Commit

Permalink
warn users that backups are paused
Browse files Browse the repository at this point in the history
  • Loading branch information
mymindstorm committed Jul 28, 2024
1 parent 967d265 commit 4ac2fb1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -514,5 +514,9 @@
"encryption_required": {
"message": "Set a password in the security menu to use this feature.",
"description": "Backup risk warning."
},
"warn_backup_paused": {
"message": "Warning: Cloud backups are paused until a password is set via the security menu.",
"description": "Backup paused warning."
}
}
10 changes: 10 additions & 0 deletions src/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@ init();
async function runScheduledBackup(clientTime: number, instance: Vue) {
if (!instance.$store.getters["accounts/allEntriesEncrypted"]) {
// Don't ever upload an unencrypted secret
if (
instance.$store.state.backup.dropboxToken ||
instance.$store.state.backup.driveToken ||
instance.$store.state.backup.oneDriveToken
) {
instance.$store.commit(
"notification/alert",
instance.i18n.warn_backup_paused
);
}
return;
}

Expand Down

0 comments on commit 4ac2fb1

Please sign in to comment.