Fix inconsistent task notifications (#1103)
This commit is contained in:
@@ -221,6 +221,7 @@ function SavedTaskForm({ initialValues }: Props) {
|
|||||||
},
|
},
|
||||||
onSuccess: (response) => {
|
onSuccess: (response) => {
|
||||||
toast({
|
toast({
|
||||||
|
variant: "success",
|
||||||
title: "Task Created",
|
title: "Task Created",
|
||||||
description: `${response.data.task_id} created successfully.`,
|
description: `${response.data.task_id} created successfully.`,
|
||||||
action: (
|
action: (
|
||||||
@@ -262,6 +263,7 @@ function SavedTaskForm({ initialValues }: Props) {
|
|||||||
},
|
},
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
toast({
|
toast({
|
||||||
|
variant: "success",
|
||||||
title: "Changes saved",
|
title: "Changes saved",
|
||||||
description: "Changes saved successfully",
|
description: "Changes saved successfully",
|
||||||
});
|
});
|
||||||
@@ -766,7 +768,8 @@ function SavedTaskForm({ initialValues }: Props) {
|
|||||||
});
|
});
|
||||||
copyText(curl).then(() => {
|
copyText(curl).then(() => {
|
||||||
toast({
|
toast({
|
||||||
title: "Copied cURL",
|
variant: "success",
|
||||||
|
title: "Copied successfully",
|
||||||
description: "cURL copied to clipboard",
|
description: "cURL copied to clipboard",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ function SavedTasks() {
|
|||||||
},
|
},
|
||||||
onSuccess: (response) => {
|
onSuccess: (response) => {
|
||||||
toast({
|
toast({
|
||||||
|
variant: "success",
|
||||||
title: "New template created",
|
title: "New template created",
|
||||||
description: "Your template was created successfully",
|
description: "Your template was created successfully",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ function TaskActions({ task }: Props) {
|
|||||||
},
|
},
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
toast({
|
toast({
|
||||||
|
variant: "success",
|
||||||
title: "Template saved",
|
title: "Template saved",
|
||||||
description: "Template saved successfully",
|
description: "Template saved successfully",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user