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 <josh.t.richards@gmail.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
joshtrichards authored and artonge committed Apr 3, 2024
1 parent 7b44589 commit ff6979f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 3rdparty
Submodule 3rdparty updated 3902 files
5 changes: 2 additions & 3 deletions apps/settings/src/components/Encryption.vue
Expand Up @@ -137,10 +137,9 @@ export default {
key,
})
const stringValue = value ? 'yes' : 'no'
try {
const { data } = await axios.post(url, {
value: stringValue,
value: value,

Check failure on line 142 in apps/settings/src/components/Encryption.vue

View workflow job for this annotation

GitHub Actions / eslint

Expected property shorthand
})
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

0 comments on commit ff6979f

Please sign in to comment.