Skip to content
Snippets Groups Projects
Commit d447ffd3 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Remove repetitive dividers

parent 95615a6b
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@
:nested="true"/>
</div>
</div>
<el-divider class="divider"/>
<el-divider v-if="notLastInGroup(setting.key)" class="divider"/>
</div>
</div>
</div>
......@@ -125,11 +125,14 @@ export default {
key === ':replace'
},
divideSetting(key) {
return [':sslopts', ':tlsopts', ':adapter', ':poll_limits', ':queues', ':styling', ':proxy_opts'].includes(key)
return [':sslopts', ':tlsopts', ':adapter', ':poll_limits', ':queues', ':styling', ':invalidation', ':multi_factor_authentication'].includes(key)
},
getFormattedDescription(desc) {
return marked(desc)
},
notLastInGroup(key) {
return this.settingGroup.children.slice(-1)[0].key !== key
},
async removeSetting(key) {
this.$confirm(
this.$t('settings.removeSettingConfirmation'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment