Cleanup + Rebase

Cleanup and remove docstring

Cleanup

Add timestamp ui configuration.

Apply timestamp option to recordings page as well

Code formatting

Cleanup and remove docstring

Cleanup
This commit is contained in:
Nick Mowen 2022-06-08 09:40:15 -06:00
parent 73f0d0d0b2
commit b573ede933
2 changed files with 0 additions and 3 deletions

View File

@ -60,8 +60,6 @@ class FrigateBaseModel(BaseModel):
class UiTimestampConfig(FrigateBaseModel): class UiTimestampConfig(FrigateBaseModel):
"""Configuration for the UI timestamps."""
hour_12: bool = Field(default=True, title="Use 12 hour format in UI.") hour_12: bool = Field(default=True, title="Use 12 hour format in UI.")

View File

@ -148,7 +148,6 @@ export function EventCard({ camera, event }) {
const { data: config } = useSWR('config'); const { data: config } = useSWR('config');
let duration = 'In Progress'; let duration = 'In Progress';
if (event.end_time) { if (event.end_time) {
duration = formatDuration(intervalToDuration({ start, end })); duration = formatDuration(intervalToDuration({ start, end }));
} }