feat: add deleteAllSessions functionality and update batch delete logic
- Introduced a new API function `deleteAllSessions` to allow deletion of all sessions for a tenant. - Updated the `BatchManageDialog` component to support a confirmation dialog for deleting all sessions. - Enhanced the menu component to reflect the new delete all functionality with appropriate confirmation messages. - Added internationalization support for the new delete all confirmation message in multiple languages. These changes improve session management by providing users with the ability to delete all sessions at once, enhancing the overall user experience.
This commit is contained in:
@@ -23,6 +23,7 @@ export default {
|
||||
delete: 'Delete Conversations',
|
||||
deleteConfirmTitle: 'Delete Conversations',
|
||||
deleteConfirmBody: 'Are you sure you want to delete the selected {count} conversation(s)? This action cannot be undone.',
|
||||
deleteAllConfirmBody: 'Are you sure you want to delete all conversations? This action cannot be undone.',
|
||||
deleteSuccess: 'Deleted successfully',
|
||||
deleteFailed: 'Delete failed, please try again later',
|
||||
noSelection: 'Please select at least one conversation',
|
||||
|
||||
@@ -23,6 +23,7 @@ export default {
|
||||
delete: "대화 삭제",
|
||||
deleteConfirmTitle: "대화 삭제",
|
||||
deleteConfirmBody: "선택한 {count}개의 대화를 삭제하시겠습니까? 삭제 후 복구할 수 없습니다.",
|
||||
deleteAllConfirmBody: "모든 대화를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",
|
||||
deleteSuccess: "삭제 성공",
|
||||
deleteFailed: "삭제 실패, 나중에 다시 시도해 주세요",
|
||||
noSelection: "최소 하나의 대화를 선택해 주세요",
|
||||
|
||||
@@ -21,6 +21,7 @@ export default {
|
||||
delete: 'Удалить диалоги',
|
||||
deleteConfirmTitle: 'Удалить диалоги',
|
||||
deleteConfirmBody: 'Вы уверены, что хотите удалить выбранные {count} диалог(ов)? Это действие необратимо.',
|
||||
deleteAllConfirmBody: 'Вы уверены, что хотите удалить все диалоги? Это действие необратимо.',
|
||||
deleteSuccess: 'Успешно удалено',
|
||||
deleteFailed: 'Ошибка удаления, попробуйте позже',
|
||||
noSelection: 'Выберите хотя бы один диалог',
|
||||
|
||||
@@ -23,6 +23,7 @@ export default {
|
||||
delete: "删除对话",
|
||||
deleteConfirmTitle: "删除对话",
|
||||
deleteConfirmBody: "确定要删除选中的 {count} 条对话吗?删除后无法恢复。",
|
||||
deleteAllConfirmBody: "确定要删除所有对话吗?此操作无法恢复。",
|
||||
deleteSuccess: "删除成功",
|
||||
deleteFailed: "删除失败,请稍后再试",
|
||||
noSelection: "请至少选择一条对话",
|
||||
|
||||
Reference in New Issue
Block a user