From 0c2a39a770ecadd8f648d70dc68f100317869ebd Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Sun, 10 Nov 2019 10:17:57 +0900 Subject: [PATCH] Update Endpoint and Esshd tabs to put data from API into forms --- src/views/settings/components/Endpoint.vue | 9 ++++++--- src/views/settings/components/Esshd.vue | 13 ------------- src/views/settings/components/Inputs.vue | 9 ++++----- src/views/settings/components/Setting.vue | 6 +++--- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/src/views/settings/components/Endpoint.vue b/src/views/settings/components/Endpoint.vue index a331b3a8..d03fd134 100644 --- a/src/views/settings/components/Endpoint.vue +++ b/src/views/settings/components/Endpoint.vue @@ -28,10 +28,13 @@ export default { }, computed: { ...mapGetters([ - 'endpointData' + 'settings' ]), endpoint() { - return this.$store.state.settings.description.find(setting => setting.key === 'Pleroma.Web.Endpoint') + return this.settings.description.find(setting => setting.key === 'Pleroma.Web.Endpoint') + }, + endpointData() { + return this.settings.settings['Pleroma.Web.Endpoint'] }, isMobile() { return this.$store.state.app.device === 'mobile' @@ -40,7 +43,7 @@ export default { return this.isMobile ? '100px' : '240px' }, loading() { - return this.$store.state.settings.loading + return this.settings.loading } }, methods: { diff --git a/src/views/settings/components/Esshd.vue b/src/views/settings/components/Esshd.vue index e45ae890..e92ce79b 100644 --- a/src/views/settings/components/Esshd.vue +++ b/src/views/settings/components/Esshd.vue @@ -1,19 +1,6 @@