aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-04-03 18:56:31 +0200
committerLouis <louis@chmn.me>2024-04-04 10:08:47 +0200
commitfe869641f5388be7b6de9a49f2c456365c4d1833 (patch)
tree4be4c8cf599e9a340b7252f20966b905f5923d98 /apps
parentf9aac6b0c95d50e6a1de8856f15a41eb36dd9241 (diff)
downloadnextcloud-server-fe869641f5388be7b6de9a49f2c456365c4d1833.tar.gz
nextcloud-server-fe869641f5388be7b6de9a49f2c456365c4d1833.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> Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-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 db7a7907761..a59491dc297 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,
})
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') {