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" },
|
||||
)
|
||||
.then((response) => {
|
||||
if (response.status == 200) {
|
||||
if (response.status < 300) {
|
||||
toast.success(t("export.toast.success"), {
|
||||
position: "top-center",
|
||||
action: (
|
||||
|
||||
@ -278,7 +278,7 @@ export default function EventView({
|
||||
{ playback: "realtime", image_path: review.thumb_path },
|
||||
)
|
||||
.then((response) => {
|
||||
if (response.status == 200) {
|
||||
if (response.status < 300) {
|
||||
toast.success(
|
||||
t("export.toast.success", { ns: "components/dialog" }),
|
||||
{
|
||||
|
||||
@ -357,7 +357,7 @@ export default function MotionSearchView({
|
||||
},
|
||||
)
|
||||
.then((response) => {
|
||||
if (response.status == 200) {
|
||||
if (response.status < 300) {
|
||||
toast.success(
|
||||
t("export.toast.success", { ns: "components/dialog" }),
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user