mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-07 05:55:27 +03:00
hide camera overrides badge from system sections
This commit is contained in:
parent
5211590866
commit
c235ea6237
@ -43,17 +43,33 @@ const CAMERA_PAGE_BY_SECTION: Record<string, string> = {
|
|||||||
const MAX_FIELDS_PER_CAMERA = 5;
|
const MAX_FIELDS_PER_CAMERA = 5;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enrichment sections where the cross-camera override badge should be
|
* Sections where the cross-camera override badge should be suppressed.
|
||||||
* suppressed because they're effectively global-only (or per-camera
|
* Includes enrichment sections that aren't meaningfully per-camera
|
||||||
* configuration there isn't a useful affordance to surface here).
|
* (face recognition and LPR are intentionally omitted so the badge does show
|
||||||
* Face recognition and LPR are intentionally omitted so the badge does show
|
* there) and every System sub-page (detector hardware, database, networking,
|
||||||
* on those enrichment pages.
|
* etc.) which configures Frigate as a whole, not per-camera state.
|
||||||
*/
|
*/
|
||||||
const SECTIONS_WITHOUT_OVERRIDE_BADGE = new Set([
|
const SECTIONS_WITHOUT_OVERRIDE_BADGE = new Set([
|
||||||
|
// Enrichments (face_recognition and lpr remain enabled)
|
||||||
"semantic_search",
|
"semantic_search",
|
||||||
"genai",
|
"genai",
|
||||||
"classification",
|
"classification",
|
||||||
"audio_transcription",
|
"audio_transcription",
|
||||||
|
// System
|
||||||
|
"go2rtc_streams",
|
||||||
|
"database",
|
||||||
|
"mqtt",
|
||||||
|
"tls",
|
||||||
|
"auth",
|
||||||
|
"networking",
|
||||||
|
"proxy",
|
||||||
|
"ui",
|
||||||
|
"logger",
|
||||||
|
"environment_vars",
|
||||||
|
"telemetry",
|
||||||
|
"birdseye",
|
||||||
|
"detectors",
|
||||||
|
"model",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user