Add delete phase confirmation modal with localization support

- Implemented a confirmation modal for deleting phases in the Kanban board.
- Integrated localized messages for delete phase prompts in multiple languages, enhancing user experience.
- Updated KanbanGroup component to utilize the new confirmation modal for phase deletions.
This commit is contained in:
shancds
2025-07-15 16:45:57 +05:30
parent c80b00ec76
commit d89247eb02
7 changed files with 30 additions and 1 deletions

View File

@@ -231,6 +231,18 @@ const KanbanGroup: React.FC<KanbanGroupProps> = memo(({
await handleDeleteSection();
},
});
} else if (groupBy === IGroupBy.PHASE) {
Modal.confirm({
title: t('deletePhaseTitle'),
content: t('deletePhaseContent'),
okText: t('deleteTaskConfirm'),
okType: 'danger',
cancelText: t('deleteTaskCancel'),
centered: true,
onOk: async () => {
await handleDeleteSection();
},
});
} else {
Modal.confirm({
title: t('deleteConfirmationTitle'),