Make pipeline index rollback work with multiple cameras

This commit is contained in:
Declan Freeman-Gleason
2021-01-08 21:00:23 -05:00
parent 5d139e0a4e
commit 0b2de7d9f1
2 changed files with 18 additions and 10 deletions

View File

@@ -4,10 +4,10 @@ export const dataHandleMixin = {
let msg = this.$msgPack.encode({[key]: value});
this.$socket.send(msg);
},
handleInputWithIndex(key, value) {
handleInputWithIndex(key, value, cameraIndex = this.$store.getters.currentCameraIndex) {
let msg = this.$msgPack.encode({
[key]: value,
["cameraIndex"]: this.$store.getters.currentCameraIndex
["cameraIndex"]: cameraIndex,
});
this.$socket.send(msg);
},