mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-30 07:39:01 +03:00
fix: fix system stats i18n (#22600)
* fix: fix system stats i18n * chore: lint
This commit is contained in:
@@ -11,7 +11,7 @@ import useSWR from "swr";
|
||||
|
||||
type ThresholdBarGraphProps = {
|
||||
graphId: string;
|
||||
name: string;
|
||||
name?: string;
|
||||
unit: string;
|
||||
threshold: Threshold;
|
||||
updateTimes: number[];
|
||||
@@ -25,6 +25,7 @@ export function ThresholdBarGraph({
|
||||
updateTimes,
|
||||
data,
|
||||
}: ThresholdBarGraphProps) {
|
||||
const displayName = name || data[0]?.name || "";
|
||||
const { data: config } = useSWR<FrigateConfig>("config", {
|
||||
revalidateOnFocus: false,
|
||||
});
|
||||
@@ -186,7 +187,7 @@ export function ThresholdBarGraph({
|
||||
return (
|
||||
<div className="flex w-full flex-col">
|
||||
<div className="flex items-center gap-1">
|
||||
<div className="text-xs text-secondary-foreground">{name}</div>
|
||||
<div className="text-xs text-secondary-foreground">{displayName}</div>
|
||||
<div className="text-xs text-primary">
|
||||
{lastValue}
|
||||
{unit}
|
||||
|
||||
@@ -159,7 +159,9 @@ export default function CameraInfoDialog({
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-muted-foreground">
|
||||
<div className="ml-2 mt-1">Audio:</div>
|
||||
<div className="ml-2 mt-1">
|
||||
{t("cameras.info.audio")}
|
||||
</div>
|
||||
<div className="ml-4">
|
||||
{t("cameras.info.codec")}{" "}
|
||||
<span className="text-primary">
|
||||
|
||||
Reference in New Issue
Block a user