aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2024-04-01 18:43:22 -0400
committernextcloud-command <nextcloud-command@users.noreply.github.com>2024-04-01 22:54:04 +0000
commit8f3c673eface1d5ee19b377ab58ae9b641bc4b91 (patch)
treeb39b2f2d16b0374e5d00eb599a4b1aff57c4cf08 /apps/settings
parent536aa8ae876c6a37903a693c4a7dce350fb5ac1a (diff)
downloadnextcloud-server-8f3c673eface1d5ee19b377ab58ae9b641bc4b91.tar.gz
nextcloud-server-8f3c673eface1d5ee19b377ab58ae9b641bc4b91.zip
fix(encryption): Clicking default module in UI sets bogus value
Fixes #44532 Likely fixes #43123 Signed-off-by: Josh <josh.t.richards@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/components/Encryption.vue5
1 files changed, 2 insertions, 3 deletions
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') {