Skip to content

Commit adea4af

Browse files
authored
Merge pull request #44632 from nextcloud/backport/44604/stable27
[stable27] fix(encryption): Clicking default module in UI sets bogus value
2 parents f9aac6b + fe86964 commit adea4af

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

apps/settings/src/components/Encryption.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,9 @@ export default {
137137
key,
138138
})
139139
140-
const stringValue = value ? 'yes' : 'no'
141140
try {
142141
const { data } = await axios.post(url, {
143-
value: stringValue,
142+
value,
144143
})
145144
this.handleResponse({
146145
status: data.ocs?.meta?.status,
@@ -157,7 +156,7 @@ export default {
157156
},
158157
async enableEncryption() {
159158
this.encryptionEnabled = true
160-
await this.update('encryption_enabled', true)
159+
await this.update('encryption_enabled', 'yes')
161160
},
162161
async handleResponse({ status, errorMessage, error }) {
163162
if (status !== 'ok') {

0 commit comments

Comments
 (0)