From f822fb4ba6251a2c8ffc9169ace7f0ef5ca3c1b4 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 26 Apr 2020 21:03:05 +0300 Subject: [PATCH] Reduce labels for Mailer adapter, Metadata providers, Rich Media parsers and TTL setters --- src/views/settings/components/Inputs.vue | 3 ++- .../inputComponents/RewritePolicyInput.vue | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 5b168b80..3a24e23d 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -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 diff --git a/src/views/settings/components/inputComponents/RewritePolicyInput.vue b/src/views/settings/components/inputComponents/RewritePolicyInput.vue index 0b3aa1cd..e245a6da 100644 --- a/src/views/settings/components/inputComponents/RewritePolicyInput.vue +++ b/src/views/settings/components/inputComponents/RewritePolicyInput.vue @@ -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 = '' }