From 7f01e26a2df7e6dfb7c3e17278b333375fae6b32 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 15 Mar 2020 22:44:36 +0300 Subject: [PATCH] Adapt search for auto linker, admin token and auth settings --- src/store/modules/normalizers.js | 4 ++-- .../settings/components/inputComponents/CrontabInput.vue | 2 +- src/views/settings/index.vue | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/store/modules/normalizers.js b/src/store/modules/normalizers.js index c7dca1b6..6eecebca 100644 --- a/src/store/modules/normalizers.js +++ b/src/store/modules/normalizers.js @@ -283,9 +283,9 @@ export const formSearchObject = description => { const searchArray = _.compact([setting.key, setting.label, setting.description]).map(el => el.toLowerCase()) const resultObject = { label: setting.label, key: setting.key || setting.group, groupKey: setting.key || setting.group, groupLabel: setting.label, search: searchArray } if (setting.children) { - const updatedAcc = [...acc, resultObject] + const updatedAcc = !setting.key && setting.group === ':pleroma' ? acc : [...acc, resultObject] return [...updatedAcc, ...parseNestedSettings(setting.children, setting.label, setting.key || setting.group)] } - return [...acc, resultObject] + return !setting.key && setting.group === ':pleroma' ? acc : [...acc, resultObject] }, []) } diff --git a/src/views/settings/components/inputComponents/CrontabInput.vue b/src/views/settings/components/inputComponents/CrontabInput.vue index f3f16d26..89a14915 100644 --- a/src/views/settings/components/inputComponents/CrontabInput.vue +++ b/src/views/settings/components/inputComponents/CrontabInput.vue @@ -1,6 +1,6 @@