Merge pull request #44634 from nextcloud/backport/44604/stable29

[stable29] fix(encryption): Clicking default module in UI sets bogus value
This commit is contained in:
Arthur Schiwon 2024-04-04 12:56:52 +02:00 committed by GitHub
commit 3b1d2c3cd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 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') {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long