From 8169da5ad4340fee9de076971b9dfc3022d47e97 Mon Sep 17 00:00:00 2001 From: Chris Gerth Date: Wed, 9 Nov 2022 23:01:11 -0500 Subject: [PATCH] wip getting stream divisor to update properly (#574) --- photon-client/src/views/PipelineViews/InputTab.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/photon-client/src/views/PipelineViews/InputTab.vue b/photon-client/src/views/PipelineViews/InputTab.vue index 58e16121e..277fa1302 100644 --- a/photon-client/src/views/PipelineViews/InputTab.vue +++ b/photon-client/src/views/PipelineViews/InputTab.vue @@ -107,11 +107,6 @@ }, // eslint-disable-next-line vue/require-prop-types props: ['value'], - data() { - return { - rawStreamDivisorIndex: 0, - } - }, computed: { largeBox: { get() { @@ -185,15 +180,15 @@ this.$store.commit("mutatePipeline", {"cameraVideoModeIndex": val}); this.handlePipelineUpdate("streamingFrameDivisor", this.getNumSkippedStreamDivisors()); - this.rawStreamDivisorIndex = 0; + this.$store.commit("mutatePipeline", {"streamingFrameDivisor": 0}); } }, streamingFrameDivisor: { get() { - return this.rawStreamDivisorIndex; + return this.$store.getters.currentPipelineSettings.streamingFrameDivisor; }, set(val) { - this.rawStreamDivisorIndex = val; + this.$store.commit("mutatePipeline", {"streamingFrameDivisor": val}); this.handlePipelineUpdate("streamingFrameDivisor", this.getNumSkippedStreamDivisors() + val); } },