mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Only show the sub labels filter when there are sub labels in the DB
This commit is contained in:
parent
5ce478c586
commit
f2409171fe
@ -270,6 +270,8 @@ export default function Events({ path, ...props }) {
|
|||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
|
{
|
||||||
|
filterValues.sub_labels.length > 0 && (
|
||||||
<select
|
<select
|
||||||
className="basis-1/5 cursor-pointer rounded dark:bg-slate-800"
|
className="basis-1/5 cursor-pointer rounded dark:bg-slate-800"
|
||||||
value={searchParams.sub_label}
|
value={searchParams.sub_label}
|
||||||
@ -282,6 +284,7 @@ export default function Events({ path, ...props }) {
|
|||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
|
)}
|
||||||
<div ref={datePicker} className="ml-auto">
|
<div ref={datePicker} className="ml-auto">
|
||||||
<CalendarIcon
|
<CalendarIcon
|
||||||
className="h-8 w-8 cursor-pointer"
|
className="h-8 w-8 cursor-pointer"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user