From 98d83482b9c626ee1df45b96ffee4cf53ba81b2a Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 8 May 2024 16:58:46 +0930 Subject: [PATCH] Add failure message --- admin/app/clusters/[clusterId]/tasks/page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/app/clusters/[clusterId]/tasks/page.tsx b/admin/app/clusters/[clusterId]/tasks/page.tsx index 50b905b8..b7e634c1 100644 --- a/admin/app/clusters/[clusterId]/tasks/page.tsx +++ b/admin/app/clusters/[clusterId]/tasks/page.tsx @@ -123,7 +123,12 @@ export default function Page({ params }: { params: { clusterId: string } }) { jobs: data.jobs, }); } else { - toast.error("Failed to issue cluster task"); + setData({ + loading: false, + taskId: null, + result: "Failed to execute task", + jobs: data.jobs, + }); } }} >