From 050134bfbf499259e8e3867bde2a270b706deb45 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Thu, 12 Nov 2020 21:39:31 +0300 Subject: [PATCH] Add User Backup settings, fix key for Pleroma.Web.Plugs.RemoteIp --- src/views/settings/components/Other.vue | 10 ++++++++++ src/views/settings/components/tabs.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/settings/components/Other.vue b/src/views/settings/components/Other.vue index 1a66b90c..925fef81 100644 --- a/src/views/settings/components/Other.vue +++ b/src/views/settings/components/Other.vue @@ -2,6 +2,10 @@
+ + + + @@ -42,6 +46,12 @@ export default { ...mapGetters([ 'settings' ]), + backup() { + return this.settings.description.find(setting => setting.key === 'Pleroma.User.Backup') + }, + backupData() { + return _.get(this.settings.settings, [':pleroma', 'Pleroma.User.Backup']) || {} + }, castAndValidate() { return this.settings.description.find(setting => setting.key === 'Pleroma.Web.ApiSpec.CastAndValidate') }, diff --git a/src/views/settings/components/tabs.js b/src/views/settings/components/tabs.js index 320b4885..89185971 100644 --- a/src/views/settings/components/tabs.js +++ b/src/views/settings/components/tabs.js @@ -78,7 +78,7 @@ export const tabs = description => { }, 'other': { label: 'settings.other', - settings: [':mime', 'Pleroma.Web.Plugs.RemoteIp', ':modules', 'Pleroma.Web.ApiSpec.CastAndValidate', ':terms_of_services'] + settings: [':mime', 'Pleroma.User.Backup', 'Pleroma.Web.Plugs.RemoteIp', ':modules', 'Pleroma.Web.ApiSpec.CastAndValidate', ':terms_of_services'] } } }