mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-19 19:06:16 +01:00
show version in production builds (#9602)
This commit is contained in:
parent
f4310862aa
commit
92a0705b03
@ -56,6 +56,7 @@ import {
|
|||||||
} from "./ui/sheet";
|
} from "./ui/sheet";
|
||||||
import ActivityIndicator from "./ui/activity-indicator";
|
import ActivityIndicator from "./ui/activity-indicator";
|
||||||
import { useRestart } from "@/api/ws";
|
import { useRestart } from "@/api/ws";
|
||||||
|
import { ENV } from "@/env";
|
||||||
|
|
||||||
type HeaderProps = {
|
type HeaderProps = {
|
||||||
onToggleNavbar: () => void;
|
onToggleNavbar: () => void;
|
||||||
@ -111,6 +112,11 @@ function Header({ onToggleNavbar }: HeaderProps) {
|
|||||||
</div>
|
</div>
|
||||||
<Heading as="h1">Frigate</Heading>
|
<Heading as="h1">Frigate</Heading>
|
||||||
</div>
|
</div>
|
||||||
|
{ENV == "production" && (
|
||||||
|
<div className="text-red-500 text-sm items-center text-right">
|
||||||
|
0.14 unstable
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-shrink-0 md:gap-2">
|
<div className="flex flex-shrink-0 md:gap-2">
|
||||||
|
Loading…
Reference in New Issue
Block a user