mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 18:59:01 +03:00
Include sidebar change
This commit is contained in:
+9
-12
@@ -78,18 +78,15 @@ function SortedRecordingCameras({ unsortedCameras }) {
|
||||
return (
|
||||
<Fragment>
|
||||
<Separator />
|
||||
{sortedCameras.map(([camera, conf]) => {
|
||||
if (conf.record.enabled) {
|
||||
return (
|
||||
<Destination
|
||||
key={camera}
|
||||
path={`/recording/${camera}/:date?/:hour?/:seconds?`}
|
||||
href={`/recording/${camera}`}
|
||||
text={camera}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
{sortedCameras.map(([camera, _]) => {
|
||||
return (
|
||||
<Destination
|
||||
key={camera}
|
||||
path={`/recording/${camera}/:date?/:hour?/:seconds?`}
|
||||
href={`/recording/${camera}`}
|
||||
text={camera}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
<Separator />
|
||||
</Fragment>
|
||||
|
||||
Reference in New Issue
Block a user