From cea1485ddc92f8317f3c61ecd428b12b2690344f Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 6 Jul 2020 00:28:09 +0300 Subject: [PATCH] Add Invalidation settings on MediaProxy tab --- src/views/settings/components/Inputs.vue | 2 +- src/views/settings/components/MediaProxy.vue | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/views/settings/components/Inputs.vue b/src/views/settings/components/Inputs.vue index 0b14e282..0578ae2f 100644 --- a/src/views/settings/components/Inputs.vue +++ b/src/views/settings/components/Inputs.vue @@ -87,7 +87,7 @@ diff --git a/src/views/settings/components/MediaProxy.vue b/src/views/settings/components/MediaProxy.vue index 11c9d793..d3fa619d 100644 --- a/src/views/settings/components/MediaProxy.vue +++ b/src/views/settings/components/MediaProxy.vue @@ -3,6 +3,14 @@ + + + + + + + +
Submit
@@ -22,6 +30,12 @@ export default { ...mapGetters([ 'settings' ]), + httpInvalidation() { + return this.settings.description.find(setting => setting.key === 'Pleroma.Web.MediaProxy.Invalidation.Http') + }, + httpInvalidationData() { + return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.MediaProxy.Invalidation.Http']) || {} + }, isMobile() { return this.$store.state.app.device === 'mobile' }, @@ -51,6 +65,12 @@ export default { }, mediaProxyData() { return _.get(this.settings.settings, [':pleroma', ':media_proxy']) || {} + }, + scriptInvalidation() { + return this.settings.description.find(setting => setting.key === 'Pleroma.Web.MediaProxy.Invalidation.Script') + }, + scriptInvalidationData() { + return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.MediaProxy.Invalidation.Script']) || {} } }, methods: {