Skip to content

Commit fe86964

Browse files
committed
fix(encryption): Clicking default module in UI sets bogus value
Fixes #44532 Likely fixes #43123 Signed-off-by: Josh <josh.t.richards@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com> Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent f9aac6b commit fe86964

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)