|
|
@@ -112,6 +112,14 @@ export const ExpandedJobChartFC: React.FC<{
|
|
|
return conf;
|
|
|
};
|
|
|
|
|
|
+ const handleDeleteChart = async () => {
|
|
|
+ try {
|
|
|
+ await deleteChart();
|
|
|
+ } finally {
|
|
|
+ setCurrentOverlay(null);
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
const renderTabContents = (currentTab: string) => {
|
|
|
if (currentTab === "jobs" && hasPorterImageTemplate) {
|
|
|
return (
|
|
|
@@ -241,7 +249,7 @@ export const ExpandedJobChartFC: React.FC<{
|
|
|
if (showOverlay) {
|
|
|
setCurrentOverlay({
|
|
|
message: `Are you sure you want to delete ${chart.name}?`,
|
|
|
- onYes: deleteChart,
|
|
|
+ onYes: handleDeleteChart,
|
|
|
onNo: () => setCurrentOverlay(null),
|
|
|
});
|
|
|
} else {
|