Fix inconsistent task notifications (#1103)

This commit is contained in:
Shuchang Zheng
2024-11-01 05:42:43 -07:00
committed by GitHub
parent de19cefa64
commit f9b7df8efc
3 changed files with 6 additions and 1 deletions

View File

@@ -221,6 +221,7 @@ function SavedTaskForm({ initialValues }: Props) {
},
onSuccess: (response) => {
toast({
variant: "success",
title: "Task Created",
description: `${response.data.task_id} created successfully.`,
action: (
@@ -262,6 +263,7 @@ function SavedTaskForm({ initialValues }: Props) {
},
onSuccess: () => {
toast({
variant: "success",
title: "Changes saved",
description: "Changes saved successfully",
});
@@ -766,7 +768,8 @@ function SavedTaskForm({ initialValues }: Props) {
});
copyText(curl).then(() => {
toast({
title: "Copied cURL",
variant: "success",
title: "Copied successfully",
description: "cURL copied to clipboard",
});
});

View File

@@ -92,6 +92,7 @@ function SavedTasks() {
},
onSuccess: (response) => {
toast({
variant: "success",
title: "New template created",
description: "Your template was created successfully",
});

View File

@@ -122,6 +122,7 @@ function TaskActions({ task }: Props) {
},
onSuccess: () => {
toast({
variant: "success",
title: "Template saved",
description: "Template saved successfully",
});