From c3b83498a4111dc44e7996334d97f0893ad4e2b8 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Wed, 19 Feb 2020 02:38:35 +0300 Subject: [PATCH] Move Tesla adaper to HTTP tab --- src/views/settings/components/Http.vue | 10 ++++++++++ src/views/settings/components/Other.vue | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/settings/components/Http.vue b/src/views/settings/components/Http.vue index a94000b2..a12a1efa 100644 --- a/src/views/settings/components/Http.vue +++ b/src/views/settings/components/Http.vue @@ -3,6 +3,10 @@ + + + + {{ $t('settings.corsPlug') }} @@ -82,6 +86,12 @@ export default { loading() { return this.settings.loading }, + teslaAdapter() { + return this.settings.description.find(setting => setting.group === ':tesla') + }, + teslaAdapterData() { + return _.get(this.settings.settings, [':tesla']) || {} + }, webCacheTtl() { return this.settings.description.find(setting => setting.key === ':web_cache_ttl') }, diff --git a/src/views/settings/components/Other.vue b/src/views/settings/components/Other.vue index d748c2da..4a3b465f 100644 --- a/src/views/settings/components/Other.vue +++ b/src/views/settings/components/Other.vue @@ -1,9 +1,5 @@