mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Apply sort to recorded cameras as well
This commit is contained in:
parent
46b3dc8583
commit
492a66e386
@ -33,7 +33,7 @@ export default function Sidebar() {
|
|||||||
matches ? (
|
matches ? (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Separator />
|
<Separator />
|
||||||
{cameras.filter(([cam, conf]) => conf.gui.show).map(([camera, conf]) => {
|
{cameras.filter(([cam, conf]) => conf.gui.show).sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1)).map(([camera, conf]) => {
|
||||||
if (conf.record.enabled) {
|
if (conf.record.enabled) {
|
||||||
return (
|
return (
|
||||||
<Destination
|
<Destination
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user