mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-25 01:41:40 +00:00
[PhotonClient] Fix misc bugs and dataflow errors (#861)
Fixes leftover bugs from #767 and #856 - Because new URLs aren't based on hash URL schemas, all the routes need to be updated to final paths instead of relative ones that were previously caught by the hash URL - Fixed misc Vue warnings pointed out by @mcm001
This commit is contained in:
@@ -323,7 +323,7 @@
|
||||
>
|
||||
<template>
|
||||
<CVimage
|
||||
:id="cameras-cal"
|
||||
:id="'cameras-cal'"
|
||||
:idx="1"
|
||||
:disconnected="!$store.state.backendConnected"
|
||||
scale="100"
|
||||
@@ -479,13 +479,10 @@ export default {
|
||||
get() {
|
||||
return this.unfilteredStreamDivisors.filter(item => {
|
||||
const res = this.stringResolutionList[this.selectedFilteredResIndex].split(" X ").map(it => parseInt(it));
|
||||
console.log(res);
|
||||
console.log(item);
|
||||
// Realistically, we need more than 320x240, but lower than this is
|
||||
// basically unusable. For now, don't allow decimations that take us
|
||||
// below that
|
||||
const ret = ((res[0] / item) >= 300 && (res[1] / item) >= 220) || (item === 1);
|
||||
console.log(ret);
|
||||
return ret;
|
||||
})
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@
|
||||
<v-card-text>
|
||||
Because the current resolution {{ this.$store.getters.currentVideoFormat.width }} x {{ this.$store.getters.currentVideoFormat.height }} is not yet calibrated, 3D mode cannot be enabled. Please
|
||||
<a
|
||||
href="/#/cameras"
|
||||
href="/cameras"
|
||||
class="white--text"
|
||||
@click="$emit('switch-to-cameras')"
|
||||
> visit the Cameras tab</a> to calibrate this resolution. For now, SolvePNP will do nothing.
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
<script>
|
||||
export default {
|
||||
// eslint-disable-next-line
|
||||
name: "Device Control",
|
||||
name: "DeviceControl",
|
||||
data() {
|
||||
return {
|
||||
snack: false,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
export default {
|
||||
// eslint-disable-next-line
|
||||
name: 'LED Control',
|
||||
name: 'LEDControl',
|
||||
components: {
|
||||
CVslider,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user