mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 05:24:11 +03:00
Add button to view exports when exported (#20682)
This commit is contained in:
parent
190925375b
commit
43706eb48d
@ -52,7 +52,7 @@
|
|||||||
"export": "Export",
|
"export": "Export",
|
||||||
"selectOrExport": "Select or Export",
|
"selectOrExport": "Select or Export",
|
||||||
"toast": {
|
"toast": {
|
||||||
"success": "Successfully started export. View the file in the /exports folder.",
|
"success": "Successfully started export. View the file in the exports page.",
|
||||||
"error": {
|
"error": {
|
||||||
"failed": "Failed to start export: {{error}}",
|
"failed": "Failed to start export: {{error}}",
|
||||||
"endTimeMustAfterStartTime": "End time must be after start time",
|
"endTimeMustAfterStartTime": "End time must be after start time",
|
||||||
|
|||||||
@ -34,7 +34,7 @@ import { toast } from "sonner";
|
|||||||
import useKeyboardListener from "@/hooks/use-keyboard-listener";
|
import useKeyboardListener from "@/hooks/use-keyboard-listener";
|
||||||
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip";
|
||||||
import { capitalizeFirstLetter } from "@/utils/stringUtil";
|
import { capitalizeFirstLetter } from "@/utils/stringUtil";
|
||||||
import { buttonVariants } from "../ui/button";
|
import { Button, buttonVariants } from "../ui/button";
|
||||||
import { Trans, useTranslation } from "react-i18next";
|
import { Trans, useTranslation } from "react-i18next";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
@ -83,6 +83,11 @@ export default function ReviewCard({
|
|||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
toast.success(t("export.toast.success"), {
|
toast.success(t("export.toast.success"), {
|
||||||
position: "top-center",
|
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) {
|
if (response.status == 200) {
|
||||||
toast.success(t("export.toast.success"), {
|
toast.success(t("export.toast.success"), {
|
||||||
position: "top-center",
|
position: "top-center",
|
||||||
|
action: (
|
||||||
|
<a href="/export" target="_blank" rel="noopener noreferrer">
|
||||||
|
<Button>View</Button>
|
||||||
|
</a>
|
||||||
|
),
|
||||||
});
|
});
|
||||||
setName("");
|
setName("");
|
||||||
setRange(undefined);
|
setRange(undefined);
|
||||||
|
|||||||
@ -104,6 +104,11 @@ export default function MobileReviewSettingsDrawer({
|
|||||||
t("export.toast.success", { ns: "components/dialog" }),
|
t("export.toast.success", { ns: "components/dialog" }),
|
||||||
{
|
{
|
||||||
position: "top-center",
|
position: "top-center",
|
||||||
|
action: (
|
||||||
|
<a href="/export" target="_blank" rel="noopener noreferrer">
|
||||||
|
<Button>View</Button>
|
||||||
|
</a>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
setName("");
|
setName("");
|
||||||
|
|||||||
@ -202,6 +202,11 @@ export default function EventView({
|
|||||||
t("export.toast.success", { ns: "components/dialog" }),
|
t("export.toast.success", { ns: "components/dialog" }),
|
||||||
{
|
{
|
||||||
position: "top-center",
|
position: "top-center",
|
||||||
|
action: (
|
||||||
|
<a href="/export" target="_blank" rel="noopener noreferrer">
|
||||||
|
<Button>View</Button>
|
||||||
|
</a>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user