diff --git a/src/store/modules/normalizers.js b/src/store/modules/normalizers.js index 58e0e284..e647a4a7 100644 --- a/src/store/modules/normalizers.js +++ b/src/store/modules/normalizers.js @@ -275,7 +275,7 @@ export const formSearchObject = description => { return [...acc, resultObject] }, []) - return description.reduce((acc, setting) => { + const processedDescription = description.reduce((acc, setting) => { 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) { @@ -284,4 +284,19 @@ export const formSearchObject = description => { } return !setting.key && setting.group === ':pleroma' ? acc : [...acc, resultObject] }, []) + + const searchDataForEditableDocs = [{ + groupKey: ':instance_panel', + groupLabel: 'Instance Panel', + key: ':instance_panel', + label: 'Instance Panel', + search: ['Instance Panel', ':instance_panel'] + }, { + groupKey: ':terms_of_services', + groupLabel: 'Terms of Services', + key: ':terms_of_services', + label: 'Terms of Services', + search: ['Terms of Services', ':terms_of_services'] + }] + return processedDescription.concat(searchDataForEditableDocs) } diff --git a/src/views/settings/components/Instance.vue b/src/views/settings/components/Instance.vue index 5fd026a4..5e016d1a 100644 --- a/src/views/settings/components/Instance.vue +++ b/src/views/settings/components/Instance.vue @@ -3,9 +3,7 @@ -
- -
+ diff --git a/src/views/settings/components/Other.vue b/src/views/settings/components/Other.vue index ff9df953..1a66b90c 100644 --- a/src/views/settings/components/Other.vue +++ b/src/views/settings/components/Other.vue @@ -1,6 +1,7 @@