From e7002b4738b020dd438caf5998285acfd70afb6b Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 1 Apr 2024 18:43:22 -0400 Subject: fix(encryption): Clicking default module in UI sets bogus value Fixes #44532 Likely fixes #43123 Signed-off-by: Josh Signed-off-by: nextcloud-command Signed-off-by: nextcloud-command --- apps/settings/src/components/Encryption.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/settings/src/components/Encryption.vue b/apps/settings/src/components/Encryption.vue index b6a37b41c8b..0953d22661f 100644 --- a/apps/settings/src/components/Encryption.vue +++ b/apps/settings/src/components/Encryption.vue @@ -137,10 +137,9 @@ export default { key, }) - const stringValue = value ? 'yes' : 'no' try { const { data } = await axios.post(url, { - value: stringValue, + value: value, }) this.handleResponse({ status: data.ocs?.meta?.status, @@ -157,7 +156,7 @@ export default { }, async enableEncryption() { this.encryptionEnabled = true - await this.update('encryption_enabled', true) + await this.update('encryption_enabled', 'yes') }, async handleResponse({ status, errorMessage, error }) { if (status !== 'ok') { -- cgit v1.2.3