Skip to content

Commit

Permalink
fix(encryption): Clicking default module in UI sets bogus value
Browse files Browse the repository at this point in the history
Fixes #44532

Likely fixes #43123

Signed-off-by: Josh <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Apr 4, 2024
1 parent f9aac6b commit fe86964
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions apps/settings/src/components/Encryption.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ export default {
key,
})
const stringValue = value ? 'yes' : 'no'
try {
const { data } = await axios.post(url, {
value: stringValue,
value,
})
this.handleResponse({
status: data.ocs?.meta?.status,
Expand All @@ -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') {
Expand Down
Loading

0 comments on commit fe86964

Please sign in to comment.