From 4160a89c66ce5c0a30693cfcde7f67e4dc627243 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 27 Apr 2020 01:11:50 +0300 Subject: [PATCH] Reduce labels for Scrub policy, Uploader, Filters and Fed publisher modules --- src/views/settings/components/Inputs.vue | 13 ++++++++++++- .../inputComponents/RewritePolicyInput.vue | 12 ++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 3a24e23d..64aebb54 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -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() { diff --git a/src/views/settings/components/inputComponents/RewritePolicyInput.vue b/src/views/settings/components/inputComponents/RewritePolicyInput.vue index e245a6da..0aa49a96 100644 --- a/src/views/settings/components/inputComponents/RewritePolicyInput.vue +++ b/src/views/settings/components/inputComponents/RewritePolicyInput.vue @@ -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 = '' }