mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 15:23:20 +00:00
Add button to view exports when exported (#20682)
This commit is contained in:
1 parent
190925375b
commit
43706eb48d
5 files changed
+22
-2
No files matched your search
@@ -34,7 +34,7 @@ import { toast } from "sonner";
|
||||
import useKeyboardListener from "@/hooks/use-keyboard-listener";
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
|
||||
import { capitalizeFirstLetter } from "@/utils/stringUtil";
|
||||
import { buttonVariants } from "../ui/button";
|
||||
import { Button, buttonVariants } from "../ui/button";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
@@ -83,6 +83,11 @@ export default function ReviewCard({
|
||||
if (response.status == 200) {
|
||||
toast.success(t("export.toast.success"), {
|
||||
position: "top-center",
|
||||
action: (
|
||||
<a href="/export" target="_blank" rel="noopener noreferrer">
|
||||
<Button>View</Button>
|
||||
</a>
|
||||
),
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
@@ -95,6 +95,11 @@ export default function ExportDialog({
|
||||
if (response.status == 200) {
|
||||
toast.success(t("export.toast.success"), {
|
||||
position: "top-center",
|
||||
action: (
|
||||
<a href="/export" target="_blank" rel="noopener noreferrer">
|
||||
<Button>View</Button>
|
||||
</a>
|
||||
),
|
||||
});
|
||||
setName("");
|
||||
setRange(undefined);
|
||||
|
||||
@@ -104,6 +104,11 @@ export default function MobileReviewSettingsDrawer({
|
||||
t("export.toast.success", { ns: "components/dialog" }),
|
||||
{
|
||||
position: "top-center",
|
||||
action: (
|
||||
<a href="/export" target="_blank" rel="noopener noreferrer">
|
||||
<Button>View</Button>
|
||||
</a>
|
||||
),
|
||||
},
|
||||
);
|
||||
setName("");
|
||||
|
||||
@@ -202,6 +202,11 @@ export default function EventView({
|
||||
t("export.toast.success", { ns: "components/dialog" }),
|
||||
{
|
||||
position: "top-center",
|
||||
action: (
|
||||
<a href="/export" target="_blank" rel="noopener noreferrer">
|
||||
<Button>View</Button>
|
||||
</a>
|
||||
),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user