fix videojs bug when switching cameras, support recording delay, fix navigation highlight

This commit is contained in:
Jason Hunter
2021-06-02 23:20:07 -04:00
committed by Blake Blackshear
parent ca20c735f7
commit 9822d614e2
6 changed files with 108 additions and 28 deletions

View File

@@ -27,13 +27,17 @@ export default function Sidebar() {
) : null
}
</Match>
<Match path="/recordings/:camera/:date?/:hour?">
<Match path="/recordings/:camera/:date?/:hour?/:seconds?">
{({ matches }) =>
matches ? (
<Fragment>
<Separator />
{cameras.map((camera) => (
<Destination href={`/recordings/${camera}`} text={camera} />
<Destination
path={`/recordings/${camera}/:date?/:hour?/:seconds?`}
href={`/recordings/${camera}`}
text={camera}
/>
))}
<Separator />
</Fragment>