in src/widgets/StageActionsMenu/index.tsx [53:70]
await createDeleteAction({
allStages: stages,
currentStage: stage,
permissions,
action: () => {
if (variant === ACTION_MENU_TYPES.MENU && handleCloseResourceActionListMenu) {
handleCloseResourceActionListMenu();
}
setDialog(DeleteKubeObjectDialog, {
objectName: stage?.spec?.name,
kubeObject: StageKubeObject,
kubeObjectData: stage,
description: `Confirm the deletion of the CD stage with all its components`,
backRoute,
});
},
}),