From 7bf5142fade6817fc64293217d4c77cab7f4d989 Mon Sep 17 00:00:00 2001 From: Declan Freeman-Gleason Date: Thu, 16 Jul 2020 16:37:29 -0700 Subject: [PATCH] Use the output stream instead of the input stream in drivermode (#34) --- photon-client/src/views/PipelineView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/photon-client/src/views/PipelineView.vue b/photon-client/src/views/PipelineView.vue index 000609a46..96fda1040 100644 --- a/photon-client/src/views/PipelineView.vue +++ b/photon-client/src/views/PipelineView.vue @@ -283,9 +283,11 @@ // All this logic exists to deal with the reality that the output select buttons sometimes need an array and sometimes need a number (depending on whether or not they're exclusive) get() { // We switch the selector to single-select only on sm-and-down size devices, so we have to return a Number instead of an Array in that state - let ret = 0; + let ret; if (!this.$store.getters.isDriverMode) { ret = this.$store.state.selectedOutputs || [0]; + } else { + ret = [1]; // We want the output stream in driver mode } if (this.$vuetify.breakpoint.mdAndUp) {