mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Always show camera recordings in sidebar regardless of state (#2846)
This commit is contained in:
parent
44a2b54773
commit
162e275ef3
@ -21,7 +21,7 @@ export default function Sidebar() {
|
|||||||
matches ? (
|
matches ? (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Separator />
|
<Separator />
|
||||||
{Object.entries(cameras).map(([camera]) => (
|
{Object.keys(cameras).map((camera) => (
|
||||||
<Destination key={camera} href={`/cameras/${camera}`} text={camera} />
|
<Destination key={camera} href={`/cameras/${camera}`} text={camera} />
|
||||||
))}
|
))}
|
||||||
<Separator />
|
<Separator />
|
||||||
@ -34,18 +34,14 @@ export default function Sidebar() {
|
|||||||
matches ? (
|
matches ? (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Separator />
|
<Separator />
|
||||||
{Object.entries(cameras).map(([camera, conf]) => {
|
{Object.keys(cameras).map((camera) => (
|
||||||
if (conf.record.enabled) {
|
|
||||||
return (
|
|
||||||
<Destination
|
<Destination
|
||||||
|
key={camera}
|
||||||
path={`/recording/${camera}/:date?/:hour?/:seconds?`}
|
path={`/recording/${camera}/:date?/:hour?/:seconds?`}
|
||||||
href={`/recording/${camera}`}
|
href={`/recording/${camera}`}
|
||||||
text={camera}
|
text={camera}
|
||||||
/>
|
/>
|
||||||
);
|
))}
|
||||||
}
|
|
||||||
return null;
|
|
||||||
})}
|
|
||||||
<Separator />
|
<Separator />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
) : null
|
) : null
|
||||||
|
Loading…
Reference in New Issue
Block a user