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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user