CEC-3579 - Debug Mask on vehicle updates (#271)

* CEC-3579 - Add debug_mask to config message

* CEC-3579 - Debug Mask in vehicle update

* fix

* fix snapshots

* more fixes

* make debug mask a simple string
This commit is contained in:
Paul Adamsen
2023-01-24 14:38:06 -05:00
committed by GitHub
parent 6fb4b9cfa4
commit de721d9862
14 changed files with 72 additions and 27 deletions

View File

@@ -32,6 +32,9 @@ const MainForm = ({ vin }) => {
providers,
} = useUserContext();
const ENV = process.env.REACT_APP_ENV;
const showDebugMask = (ENV === 'local' || ENV === 'dev' || ENV === 'stg')
useEffect(() => {
(async () => {
try {
@@ -118,8 +121,12 @@ const MainForm = ({ vin }) => {
<p>
<b>Filters</b>: {vehicle.canbus.filters ? vehicle.canbus.filters.length : 0}
</p>
</Grid>
)}
{showDebugMask && (
<Grid item md={12} className={classes.textCenterAlign}>
<p>
<b>Debug Mask</b>: {vehicle.debug_mask}
<b>DebugMask</b>: {vehicle.debug_mask}
</p>
</Grid>
)}