瀏覽代碼

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>
tags/v27.1.9rc1
Louis Chemineau 1 月之前
父節點
當前提交
fe869641f5

+ 2
- 3
apps/settings/src/components/Encryption.vue 查看文件

@@ -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,
@@ -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') {

+ 2
- 2
dist/settings-vue-settings-admin-security.js
文件差異過大導致無法顯示
查看文件


+ 1
- 1
dist/settings-vue-settings-admin-security.js.map
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存