From f2fe287ddc8e0e579bb9ebab56e19c9e55830444 Mon Sep 17 00:00:00 2001 From: Hernani Soares <19963118+soaresnetoh@users.noreply.github.com> Date: Wed, 25 Nov 2026 18:25:10 +0000 Subject: [PATCH] fix manual cloud backup passing encryption map (#1477) The Drive, Dropbox and OneDrive pages passed the whole `accounts.encryption` Map to `upload()`, which expects a single Encryption instance. `backupGetExport` then called `encryption.getEncryptionStatus()` on the Map and threw "e.getEncryptionStatus is not a function", so manual backups failed silently. Pass the default encryption, as `runScheduledBackup` in popup.ts already does, and fall back to an empty Encryption when no password is set. --- src/components/Popup/DrivePage.vue | 5 ++++- src/components/Popup/DropboxPage.vue | 7 ++++++- src/components/Popup/OneDrivePage.vue | 5 ++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/Popup/DrivePage.vue b/src/components/Popup/DrivePage.vue index 351a61bb..3145ae07 100644 --- a/src/components/Popup/DrivePage.vue +++ b/src/components/Popup/DrivePage.vue @@ -33,6 +33,7 @@ import Vue from "vue"; import { isChrome } from "../../browser"; import { Drive } from "../../models/backup"; +import { Encryption } from "../../models/encryption"; import { UserSettings } from "../../models/settings"; const service = "drive"; @@ -106,7 +107,9 @@ export default Vue.extend({ async backupUpload() { const drive = new Drive(); const response = await drive.upload( - this.$store.state.accounts.encryption + this.$store.state.accounts.encryption.get( + this.$store.state.accounts.defaultEncryption + ) ?? new Encryption("", "") ); if (response === true) { this.$store.commit("notification/alert", this.i18n.updateSuccess); diff --git a/src/components/Popup/DropboxPage.vue b/src/components/Popup/DropboxPage.vue index 030d2d6c..fb30e8c6 100644 --- a/src/components/Popup/DropboxPage.vue +++ b/src/components/Popup/DropboxPage.vue @@ -32,6 +32,7 @@