Merge pull request #44604 from nextcloud/fix/encryption/web-ui-default-module-value

This commit is contained in:
John Molakvoæ 2024-04-03 11:02:27 +02:00 committed by GitHub
commit 7bd9100a85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View File

@ -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') {

Binary file not shown.

Binary file not shown.