summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-04-04 12:56:52 +0200
committerGitHub <noreply@github.com>2024-04-04 12:56:52 +0200
commit3b1d2c3cd4a33908cd05a15757aeba253bbd5988 (patch)
tree1c8087d64a1ec289d0534778b4848ab1938ba15d /apps
parent2ddac31094fb5d100ceb1d1344a2e44636cc42ba (diff)
parent1ddc77e74d6673aa94980815854745bda4dbb68c (diff)
downloadnextcloud-server-3b1d2c3cd4a33908cd05a15757aeba253bbd5988.tar.gz
nextcloud-server-3b1d2c3cd4a33908cd05a15757aeba253bbd5988.zip
Merge pull request #44634 from nextcloud/backport/44604/stable29
[stable29] fix(encryption): Clicking default module in UI sets bogus value
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 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') {