Cleanup names of cameras, zones, & labels in the UI (#3708)

* Cleanup names of cameras, zones, & labels in the UI

* Fix tests to include camera name
This commit is contained in:
Nicolas Mowen
2022-08-25 05:44:34 -06:00
committed by GitHub
parent 911d6fdfa7
commit 0d6dd1ed0f
7 changed files with 16 additions and 11 deletions

View File

@@ -81,7 +81,7 @@ export default function Debug() {
{cameraNames.map((camera, i) => (
<Tr key={i} index={i}>
<Td>
<Link href={`/cameras/${camera}`}>{camera}</Link>
<Link href={`/cameras/${camera}`}>{camera.replaceAll('_', ' ')}</Link>
</Td>
{cameraDataKeys.map((name) => (
<Td key={`${name}-${camera}`}>{cameras[camera][name]}</Td>