mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
Merge pull request #44633 from nextcloud/backport/44604/stable28
[stable28] fix(encryption): Clicking default module in UI sets bogus value
This commit is contained in:
commit
e8e6d28e5e
3 changed files with 5 additions and 6 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
4
dist/settings-vue-settings-admin-security.js
vendored
4
dist/settings-vue-settings-admin-security.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue