mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
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:
parent
73f0d0d0b2
commit
b573ede933
@ -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.")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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 }));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user