mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
ensure toast shows when export API returns 20n (202, accepted)
This commit is contained in:
parent
8131245777
commit
ebb3d7fb75
@ -85,7 +85,7 @@ export default function ReviewCard({
|
|||||||
{ playback: "realtime" },
|
{ playback: "realtime" },
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status == 200) {
|
if (response.status < 300) {
|
||||||
toast.success(t("export.toast.success"), {
|
toast.success(t("export.toast.success"), {
|
||||||
position: "top-center",
|
position: "top-center",
|
||||||
action: (
|
action: (
|
||||||
|
|||||||
@ -278,7 +278,7 @@ export default function EventView({
|
|||||||
{ playback: "realtime", image_path: review.thumb_path },
|
{ playback: "realtime", image_path: review.thumb_path },
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status == 200) {
|
if (response.status < 300) {
|
||||||
toast.success(
|
toast.success(
|
||||||
t("export.toast.success", { ns: "components/dialog" }),
|
t("export.toast.success", { ns: "components/dialog" }),
|
||||||
{
|
{
|
||||||
|
|||||||
@ -357,7 +357,7 @@ export default function MotionSearchView({
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.status == 200) {
|
if (response.status < 300) {
|
||||||
toast.success(
|
toast.success(
|
||||||
t("export.toast.success", { ns: "components/dialog" }),
|
t("export.toast.success", { ns: "components/dialog" }),
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user