From c94810994f2decc7745538483ca8e0147acbac85 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 27 Apr 2020 02:34:40 +0300 Subject: [PATCH] Add allow-create, refactor getting prefixes and rename custom component --- src/views/settings/components/Inputs.vue | 8 +-- ...t.vue => SelectInputWithReducedLabels.vue} | 57 ++++++------------- .../components/inputComponents/index.js | 2 +- 3 files changed, 21 insertions(+), 46 deletions(-) rename src/views/settings/components/inputComponents/{RewritePolicyInput.vue => SelectInputWithReducedLabels.vue} (71%) diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 64aebb54..744276dc 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -67,7 +67,7 @@ :key="index"/> - + @@ -131,7 +131,7 @@ import { PruneInput, RateLimitInput, RegInvitesInput, - RewritePolicyInput } from './inputComponents' + SelectInputWithReducedLabels } from './inputComponents' import { processNested } from '@/store/modules/normalizers' import _ from 'lodash' import marked from 'marked' @@ -149,7 +149,7 @@ export default { PruneInput, RateLimitInput, RegInvitesInput, - RewritePolicyInput + SelectInputWithReducedLabels }, props: { customLabelWidth: { diff --git a/src/views/settings/components/inputComponents/RewritePolicyInput.vue b/src/views/settings/components/inputComponents/SelectInputWithReducedLabels.vue similarity index 71% rename from src/views/settings/components/inputComponents/RewritePolicyInput.vue rename to src/views/settings/components/inputComponents/SelectInputWithReducedLabels.vue index 0aa49a96..622eb896 100644 --- a/src/views/settings/components/inputComponents/RewritePolicyInput.vue +++ b/src/views/settings/components/inputComponents/SelectInputWithReducedLabels.vue @@ -6,6 +6,7 @@ :data-search="setting.key" multiple filterable + allow-create class="input" @change="updateSetting($event, settingGroup.group, settingGroup.key, setting.key, setting.type)"> @@ -28,7 +29,7 @@