fix on demand recording button

This commit is contained in:
Josh Hawkins 2025-03-11 22:30:05 -05:00
parent 3b22566e51
commit b6cdd29b8a
2 changed files with 11 additions and 6 deletions

View File

@ -155,15 +155,20 @@ export interface CameraConfig {
record: { record: {
enabled: boolean; enabled: boolean;
enabled_in_config: boolean; enabled_in_config: boolean;
events: { alerts: {
objects: string[] | null;
post_capture: number; post_capture: number;
pre_capture: number; pre_capture: number;
required_zones: string[];
retain: { retain: {
default: number; days: number;
mode: string;
};
};
detections: {
post_capture: number;
pre_capture: number;
retain: {
days: number;
mode: string; mode: string;
objects: Record<string, unknown>;
}; };
}; };
expire_interval: number; expire_interval: number;

View File

@ -1013,7 +1013,7 @@ function FrigateCameraFeatures({
<div className="font-semibold"> <div className="font-semibold">
Started manual on-demand recording. Started manual on-demand recording.
</div> </div>
{!camera.record.enabled || camera.record.retain.days == 0 ? ( {!camera.record.enabled || camera.record.alerts.retain.days == 0 ? (
<div> <div>
Since recording is disabled or restricted in the config for this Since recording is disabled or restricted in the config for this
camera, only a snapshot will be saved. camera, only a snapshot will be saved.