diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 0be06c98..39c9276a 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -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." } } diff --git a/src/popup.ts b/src/popup.ts index b46db23c..9f9c4f44 100644 --- a/src/popup.ts +++ b/src/popup.ts @@ -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; }