From 0556b874cfced3910318a15ff1db2077f80caa01 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Thu, 12 Mar 2020 23:48:50 +0300 Subject: [PATCH] Scroll to selected setting --- src/store/modules/normalizers.js | 4 ++-- src/views/settings/components/ActivityPub.vue | 4 ++-- src/views/settings/components/Inputs.vue | 13 ++++++++++++- .../components/inputComponents/AutoLinkerInput.vue | 4 ++-- .../inputComponents/EditableKeywordInput.vue | 6 +++--- .../components/inputComponents/IconsInput.vue | 2 +- .../components/inputComponents/MascotsInput.vue | 2 +- .../components/inputComponents/MultipleSelect.vue | 2 ++ .../components/inputComponents/ProxyUrlInput.vue | 2 +- .../components/inputComponents/PruneInput.vue | 2 +- .../components/inputComponents/RateLimitInput.vue | 2 +- src/views/settings/index.vue | 8 +++++--- 12 files changed, 33 insertions(+), 18 deletions(-) diff --git a/src/store/modules/normalizers.js b/src/store/modules/normalizers.js index 022b8263..651c8295 100644 --- a/src/store/modules/normalizers.js +++ b/src/store/modules/normalizers.js @@ -262,7 +262,7 @@ export const formSearchObject = description => { const updatedAcc = [...acc, { label: setting.label, key: setting.key, groupKey: key, groupLabel: label, search: searchArray }] return [...updatedAcc, ...parseNestedSettings(setting.children, setting.label, setting.key)] } - return [...acc, { label: setting.label, key: setting.label, groupKey: key, groupLabel: label, search: searchArray }] + return [...acc, { label: setting.label, key: setting.key, groupKey: key, groupLabel: label, search: searchArray }] }, []) return description.reduce((acc, setting) => { @@ -271,6 +271,6 @@ export const formSearchObject = description => { const updatedAcc = [...acc, { label: setting.label, key: setting.key, groupKey: setting.key, groupLabel: setting.label, search: searchArray }] return [...updatedAcc, ...parseNestedSettings(setting.children, setting.label, setting.key)] } - return [...acc, { label: setting.label, key: setting.label, groupKey: setting.key, groupLabel: setting.label, search: searchArray }] + return [...acc, { label: setting.label, key: setting.key, groupKey: setting.key, groupLabel: setting.label, search: searchArray }] }, []) } diff --git a/src/views/settings/components/ActivityPub.vue b/src/views/settings/components/ActivityPub.vue index abd03f10..3e71e0c2 100644 --- a/src/views/settings/components/ActivityPub.vue +++ b/src/views/settings/components/ActivityPub.vue @@ -1,10 +1,10 @@