From 0743cb57c2d181552073f44205343c5a281668a5 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 20 Oct 2025 08:03:22 -0500 Subject: [PATCH] fix birdseye and empty card (#20582) --- web/public/locales/en/views/live.json | 4 ++-- web/src/components/card/EmptyCard.tsx | 7 +++++-- web/src/views/live/LiveDashboardView.tsx | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/web/public/locales/en/views/live.json b/web/public/locales/en/views/live.json index 2534c3957..085aa0a49 100644 --- a/web/public/locales/en/views/live.json +++ b/web/public/locales/en/views/live.json @@ -175,8 +175,8 @@ "exitEdit": "Exit Editing" }, "noCameras": { - "title": "No Cameras Set Up", - "description": "Get started by connecting a camera.", + "title": "No Cameras Configured", + "description": "Get started by connecting a camera to Frigate.", "buttonText": "Add Camera" } } diff --git a/web/src/components/card/EmptyCard.tsx b/web/src/components/card/EmptyCard.tsx index 671262994..de934482f 100644 --- a/web/src/components/card/EmptyCard.tsx +++ b/web/src/components/card/EmptyCard.tsx @@ -1,27 +1,30 @@ import React from "react"; import { Button } from "../ui/button"; import Heading from "../ui/heading"; +import { Link } from "react-router-dom"; type EmptyCardProps = { icon: React.ReactNode; title: string; description: string; buttonText?: string; + link?: string; }; export function EmptyCard({ icon, title, description, buttonText, + link, }: EmptyCardProps) { return (
{icon} {title} -
{description}
+
{description}
{buttonText?.length && ( )}
diff --git a/web/src/views/live/LiveDashboardView.tsx b/web/src/views/live/LiveDashboardView.tsx index 1df5daa67..0aaca18a1 100644 --- a/web/src/views/live/LiveDashboardView.tsx +++ b/web/src/views/live/LiveDashboardView.tsx @@ -354,7 +354,7 @@ export default function LiveDashboardView({ onSaveMuting(true); }; - if (cameras.length == 0) { + if (cameras.length == 0 && !includeBirdseye) { return ; } @@ -625,6 +625,7 @@ function NoCameraView() { title={t("noCameras.title")} description={t("noCameras.description")} buttonText={t("noCameras.buttonText")} + link="/settings?page=cameraManagement" /> );