diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 52cce435..7545b5aa 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -283,8 +283,7 @@ export default { }, methods: { editableKeyword(key, type) { - return key === ':replace' || - type === 'map' || + return type === 'map' || (Array.isArray(type) && type.includes('keyword') && type.includes('integer')) || (Array.isArray(type) && type.includes('keyword') && type.includes('string')) || (Array.isArray(type) && type.includes('keyword') && type.findIndex(el => el.includes('list') && el.includes('string')) !== -1) @@ -334,7 +333,7 @@ export default { type.includes('module') || (type.includes('list') && type.includes('string')) || (type.includes('list') && type.includes('atom')) || - (type.includes('regex') && type.includes('string')) + (!type.includes('keyword') && type.includes('regex') && type.includes('string')) ) }, renderSingleSelect(type) { diff --git a/src/views/settings/components/Setting.vue b/src/views/settings/components/Setting.vue index 1656db61..5db1ed57 100644 --- a/src/views/settings/components/Setting.vue +++ b/src/views/settings/components/Setting.vue @@ -121,8 +121,7 @@ export default { compound({ type, key, children }) { return type === 'keyword' || type === 'map' || - type.includes('keyword') || - key === ':replace' + type.includes('keyword') }, divideSetting(key) { return [':sslopts', ':tlsopts', ':adapter', ':poll_limits', ':queues', ':styling', ':invalidation', ':multi_factor_authentication'].includes(key) diff --git a/src/views/settings/components/inputComponents/EditableKeywordInput.vue b/src/views/settings/components/inputComponents/EditableKeywordInput.vue index a364b3ce..d0d88fff 100644 --- a/src/views/settings/components/inputComponents/EditableKeywordInput.vue +++ b/src/views/settings/components/inputComponents/EditableKeywordInput.vue @@ -1,14 +1,6 @@