Reduce labels for Mailer adapter, Metadata providers, Rich Media parsers and TTL setters

This commit is contained in:
Angelina Filippova 2020-04-26 21:03:05 +03:00
parent 8937cf87d1
commit f822fb4ba6
2 changed files with 14 additions and 1 deletions

View file

@ -254,7 +254,8 @@ export default {
return Array.isArray(this.data) ? this.data : []
},
reducedSelects() {
return [':method', ':rewrite_policy', 'Pleroma.Web.Auth.Authenticator'].includes(this.setting.key)
return [':ttl_setters', ':parsers', ':providers', ':method', ':rewrite_policy', 'Pleroma.Web.Auth.Authenticator'].includes(this.setting.key) ||
(this.settingGroup.key === 'Pleroma.Emails.Mailer' && this.setting.key === ':adapter')
},
settings() {
return this.$store.state.settings.settings

View file

@ -79,6 +79,18 @@ export default {
case ':method':
prefix = 'Pleroma.Captcha.'
break
case ':adapter':
prefix = 'Swoosh.Adapters.'
break
case ':providers':
prefix = 'Pleroma.Web.Metadata.Providers.'
break
case ':parsers':
prefix = 'Pleroma.Web.RichMedia.Parsers.'
break
case ':ttl_setters':
prefix = 'Pleroma.Web.RichMedia.Parser.'
break
default:
prefix = ''
}