Reduce labels for Scrub policy, Uploader, Filters and Fed publisher modules

This commit is contained in:
Angelina Filippova 2020-04-27 01:11:50 +03:00
parent f822fb4ba6
commit 4160a89c66
2 changed files with 24 additions and 1 deletions

View file

@ -254,7 +254,18 @@ export default {
return Array.isArray(this.data) ? this.data : []
},
reducedSelects() {
return [':ttl_setters', ':parsers', ':providers', ':method', ':rewrite_policy', 'Pleroma.Web.Auth.Authenticator'].includes(this.setting.key) ||
return [
':filters',
':uploader',
':federation_publisher_modules',
':scrub_policy',
':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() {

View file

@ -91,6 +91,18 @@ export default {
case ':ttl_setters':
prefix = 'Pleroma.Web.RichMedia.Parser.'
break
case ':scrub_policy':
prefix = 'Pleroma.HTML.'
break
case ':federation_publisher_modules':
prefix = 'Pleroma.Web.'
break
case ':uploader':
prefix = 'Pleroma.Uploaders.'
break
case ':filters':
prefix = 'Pleroma.Upload.Filter.'
break
default:
prefix = ''
}