Fix managing Pleroma.Upload.Filter.Mogrify setting

This commit is contained in:
Angelina Filippova 2020-06-22 03:04:53 +03:00
parent ecebe77c40
commit 6c35973907
3 changed files with 4 additions and 3 deletions

View file

@ -327,8 +327,7 @@ export default {
type.includes('module') ||
(type.includes('list') && type.includes('string')) ||
(type.includes('list') && type.includes('atom')) ||
(type.includes('regex') && type.includes('string')) ||
this.setting.key === ':args'
(type.includes('regex') && type.includes('string'))
)
},
renderSingleSelect(type) {

View file

@ -2,7 +2,7 @@
<div v-if="!loading">
<el-form-item v-if="settingGroup.label || settingGroup.description" :data-search="settingGroup.key || settingGroup.group" class="description-container">
<span v-if="settingGroup.label" class="setting-label">{{ settingGroup.label }}</span>
<span class="expl no-top-margin" v-html="getFormattedDescription(settingGroup.description)"/>
<span v-if="settingGroup.description" class="expl no-top-margin" v-html="getFormattedDescription(settingGroup.description)"/>
</el-form-item>
<div v-if="settingGroup.key === 'Pleroma.Emails.Mailer'">
<div v-for="setting in settingGroup.children.filter(setting => !setting.group)" :key="setting.key">

View file

@ -16,6 +16,8 @@
:value="data[setting.key]"
:data-search="setting.key || setting.group"
multiple
filterable
allow-create
class="input"
@change="updateSetting($event, settingGroup.group, settingGroup.key, setting.key, setting.type)">
<el-option value="strip" label="strip"/>