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: {