From 79afa08f53a88d522c3b2b10e3ed5f82dcabcd4a Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Thu, 2 Apr 2020 22:33:12 +0300 Subject: [PATCH 1/2] Add input for registrations and invites with confirmations --- src/views/settings/components/Inputs.vue | 18 ++++- .../inputComponents/RegInvitesInput.vue | 74 +++++++++++++++++++ .../components/inputComponents/index.js | 1 + 3 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 src/views/settings/components/inputComponents/RegInvitesInput.vue diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 981270cf..497fb5bb 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -41,7 +41,7 @@ class="input" @input="update($event, settingGroup.group, settingGroup.key, settingParent, setting.key, setting.type, nested)"/> + @@ -118,7 +119,17 @@ + + diff --git a/src/views/settings/components/inputComponents/index.js b/src/views/settings/components/inputComponents/index.js index 788d1f99..3b6f7aa1 100644 --- a/src/views/settings/components/inputComponents/index.js +++ b/src/views/settings/components/inputComponents/index.js @@ -7,3 +7,4 @@ export { default as MultipleSelect } from './MultipleSelect' export { default as ProxyUrlInput } from './ProxyUrlInput' export { default as PruneInput } from './PruneInput' export { default as RateLimitInput } from './RateLimitInput' +export { default as RegInvitesInput } from './RegInvitesInput' From e2f3860544f23cb02b0ec10ebd27c6edd59199b8 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sat, 4 Apr 2020 20:43:05 +0300 Subject: [PATCH 2/2] Remove Fetch initial post setting --- src/views/settings/components/Instance.vue | 10 ---------- src/views/settings/components/tabs.js | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/views/settings/components/Instance.vue b/src/views/settings/components/Instance.vue index 0d4963b7..6696c4a6 100644 --- a/src/views/settings/components/Instance.vue +++ b/src/views/settings/components/Instance.vue @@ -12,10 +12,6 @@ - - - - @@ -67,12 +63,6 @@ export default { feedData() { return _.get(this.settings.settings, [':pleroma', ':feed']) || {} }, - fetchInitialPosts() { - return this.settings.description.find(setting => setting.key === ':fetch_initial_posts') - }, - fetchInitialPostsData() { - return _.get(this.settings.settings, [':pleroma', ':fetch_initial_posts']) || {} - }, instance() { return this.settings.description.find(setting => setting.key === ':instance') }, diff --git a/src/views/settings/components/tabs.js b/src/views/settings/components/tabs.js index 4bfa2051..f9b41621 100644 --- a/src/views/settings/components/tabs.js +++ b/src/views/settings/components/tabs.js @@ -33,7 +33,7 @@ export const tabs = { }, 'instance': { label: 'settings.instance', - settings: [':admin_token', ':fetch_initial_posts', ':instance', ':manifest', 'Pleroma.User', 'Pleroma.ScheduledActivity', ':uri_schemes', ':feed', ':streamer'] + settings: [':admin_token', ':instance', ':manifest', 'Pleroma.User', 'Pleroma.ScheduledActivity', ':uri_schemes', ':feed', ':streamer'] }, 'job-queue': { label: 'settings.jobQueue',