mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-12 01:57:36 +03:00
capitalization
This commit is contained in:
parent
80c423ff9c
commit
d890e0478e
@ -643,7 +643,7 @@ export default function ObjectLifecycle({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<span>{label}</span>
|
<span className="capitalize">{label}</span>
|
||||||
<span className="text-secondary-foreground">
|
<span className="text-secondary-foreground">
|
||||||
{formattedStart ?? ""} - {formattedEnd ?? ""}
|
{formattedStart ?? ""} - {formattedEnd ?? ""}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@ -499,7 +499,7 @@ function EventList({
|
|||||||
}}
|
}}
|
||||||
role="button"
|
role="button"
|
||||||
>
|
>
|
||||||
<span>{label}</span>
|
<span className="capitalize">{label}</span>
|
||||||
{event.data?.recognized_license_plate && (
|
{event.data?.recognized_license_plate && (
|
||||||
<>
|
<>
|
||||||
·{" "}
|
·{" "}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { ObjectLifecycleSequence } from "@/types/timeline";
|
import { ObjectLifecycleSequence } from "@/types/timeline";
|
||||||
import { t } from "i18next";
|
import { t } from "i18next";
|
||||||
import { getTranslatedLabel } from "./i18n";
|
import { getTranslatedLabel } from "./i18n";
|
||||||
|
import { capitalizeFirstLetter } from "./stringUtil";
|
||||||
|
|
||||||
export function getLifecycleItemDescription(
|
export function getLifecycleItemDescription(
|
||||||
lifecycleItem: ObjectLifecycleSequence,
|
lifecycleItem: ObjectLifecycleSequence,
|
||||||
@ -10,7 +11,7 @@ export function getLifecycleItemDescription(
|
|||||||
: lifecycleItem.data.sub_label || lifecycleItem.data.label;
|
: lifecycleItem.data.sub_label || lifecycleItem.data.label;
|
||||||
|
|
||||||
const label = lifecycleItem.data.sub_label
|
const label = lifecycleItem.data.sub_label
|
||||||
? rawLabel
|
? capitalizeFirstLetter(rawLabel)
|
||||||
: getTranslatedLabel(rawLabel);
|
: getTranslatedLabel(rawLabel);
|
||||||
|
|
||||||
switch (lifecycleItem.class_type) {
|
switch (lifecycleItem.class_type) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user