diff --git a/ui/src/layout/components/top-bar/avatar/APIKeyDialog.vue b/ui/src/layout/components/top-bar/avatar/APIKeyDialog.vue index 085b7c628..a03337792 100644 --- a/ui/src/layout/components/top-bar/avatar/APIKeyDialog.vue +++ b/ui/src/layout/components/top-bar/avatar/APIKeyDialog.vue @@ -7,9 +7,7 @@ :close-on-press-escape="false" > - {{ - $t('layout.apiServiceAddress') - }} + {{ $t('layout.apiServiceAddress') }}

{{ apiUrl }} @@ -113,7 +111,7 @@ function deleteApiKey(row: any) { `${t('views.applicationOverview.appInfo.APIKeyDialog.msgConfirm1')}: ${row.secret_key}?`, t(t('views.applicationOverview.appInfo.APIKeyDialog.msgConfirm2')), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), cancelButtonText: t('common.cancel'), confirmButtonClass: 'danger' } diff --git a/ui/src/locales/lang/en-US/views/team.ts b/ui/src/locales/lang/en-US/views/team.ts index d25df4bb3..dd624e8c4 100644 --- a/ui/src/locales/lang/en-US/views/team.ts +++ b/ui/src/locales/lang/en-US/views/team.ts @@ -9,7 +9,6 @@ export default { placeholder: 'Enter username to search' }, delete: { - button: 'Remove', confirmTitle: 'Confirm removal of member:', confirmMessage: 'Removing the member will revoke their access to knowledge and APP.' diff --git a/ui/src/locales/lang/zh-CN/views/team.ts b/ui/src/locales/lang/zh-CN/views/team.ts index 58a2bc30c..155ecc848 100644 --- a/ui/src/locales/lang/zh-CN/views/team.ts +++ b/ui/src/locales/lang/zh-CN/views/team.ts @@ -9,7 +9,6 @@ export default { placeholder: '请输入用户名搜索' }, delete: { - button: '移除', confirmTitle: '是否移除成员:', confirmMessage: '移除后将会取消成员拥有的知识库和应用权限。' }, diff --git a/ui/src/locales/lang/zh-Hant/views/team.ts b/ui/src/locales/lang/zh-Hant/views/team.ts index 1b1fb4192..e4ef4dfb1 100644 --- a/ui/src/locales/lang/zh-Hant/views/team.ts +++ b/ui/src/locales/lang/zh-Hant/views/team.ts @@ -9,7 +9,6 @@ export default { placeholder: '請輸入使用者名稱搜尋' }, delete: { - button: '移除', confirmTitle: '是否移除成員:', confirmMessage: '移除後將會取消成員擁有之知識庫和應用程式權限。' }, diff --git a/ui/src/views/application-overview/component/APIKeyDialog.vue b/ui/src/views/application-overview/component/APIKeyDialog.vue index 8992d8f8a..6358b190c 100644 --- a/ui/src/views/application-overview/component/APIKeyDialog.vue +++ b/ui/src/views/application-overview/component/APIKeyDialog.vue @@ -90,7 +90,7 @@ function deleteApiKey(row: any) { `${t('views.applicationOverview.appInfo.APIKeyDialog.msgConfirm1')}: ${row.secret_key}?`, t('views.applicationOverview.appInfo.APIKeyDialog.msgConfirm2'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), cancelButtonText: t('common.cancel'), confirmButtonClass: 'danger' } diff --git a/ui/src/views/application-overview/component/LimitDialog.vue b/ui/src/views/application-overview/component/LimitDialog.vue index 2eb5e1bf5..256007cf3 100644 --- a/ui/src/views/application-overview/component/LimitDialog.vue +++ b/ui/src/views/application-overview/component/LimitDialog.vue @@ -103,11 +103,10 @@ import { ref, watch } from 'vue' import { useRoute } from 'vue-router' import type { FormInstance, FormRules } from 'element-plus' import applicationApi from '@/api/application' -import { MsgSuccess, MsgConfirm } from '@/utils/message' +import { MsgSuccess } from '@/utils/message' import { t } from '@/locales' import { copyClick } from '@/utils/clipboard' import { ComplexPermission } from '@/utils/permission/type' -import { first } from 'lodash' const route = useRoute() const { diff --git a/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue b/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue index e4c7dd952..b9ff56666 100644 --- a/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue +++ b/ui/src/views/application-overview/component/SettingAPIKeyDialog.vue @@ -39,7 +39,7 @@ import { useRoute } from 'vue-router' import type { FormInstance, FormRules } from 'element-plus' import overviewApi from '@/api/application-overview' import overviewSystemApi from '@/api/system-api-key' -import { MsgSuccess, MsgConfirm } from '@/utils/message' +import { MsgSuccess } from '@/utils/message' import { t } from '@/locales' const route = useRoute() diff --git a/ui/src/views/dataset/component/ParagraphList.vue b/ui/src/views/dataset/component/ParagraphList.vue index 2fa26834d..eed592425 100644 --- a/ui/src/views/dataset/component/ParagraphList.vue +++ b/ui/src/views/dataset/component/ParagraphList.vue @@ -94,7 +94,7 @@ const deleteHandle = (item: any, cIndex: number) => { `${t('views.paragraph.delete.confirmTitle')}${item.title || '-'} ?`, t('views.paragraph.delete.confirmMessage'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/views/dataset/index.vue b/ui/src/views/dataset/index.vue index 7c36640ce..095b6afa3 100644 --- a/ui/src/views/dataset/index.vue +++ b/ui/src/views/dataset/index.vue @@ -236,7 +236,7 @@ function deleteDataset(row: any) { `${t('views.dataset.delete.confirmTitle')}${row.name} ?`, `${t('views.dataset.delete.confirmMessage1')} ${row.application_mapping_count} ${t('views.dataset.delete.confirmMessage2')}`, { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index 35692236b..5d9439126 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -713,7 +713,7 @@ function deleteMulDocument() { `${t('views.document.delete.confirmTitle1')} ${multipleSelection.value.length} ${t('views.document.delete.confirmTitle2')}`, t('views.document.delete.confirmMessage'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) @@ -749,7 +749,7 @@ function deleteDocument(row: any) { `${t('views.document.delete.confirmTitle3')} ${row.name} ?`, `${t('views.document.delete.confirmMessage1')} ${row.paragraph_count} ${t('views.document.delete.confirmMessage2')}`, { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/views/function-lib/index.vue b/ui/src/views/function-lib/index.vue index 63548edb6..732b2c9de 100644 --- a/ui/src/views/function-lib/index.vue +++ b/ui/src/views/function-lib/index.vue @@ -252,7 +252,7 @@ function deleteFunctionLib(row: any) { `${t('views.functionLib.delete.confirmTitle')}${row.name} ?`, t('views.functionLib.delete.confirmMessage'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), cancelButtonText: t('common.cancel'), confirmButtonClass: 'danger' } diff --git a/ui/src/views/paragraph/index.vue b/ui/src/views/paragraph/index.vue index f3a75d0d3..92e2cbdda 100644 --- a/ui/src/views/paragraph/index.vue +++ b/ui/src/views/paragraph/index.vue @@ -236,7 +236,7 @@ function deleteMulParagraph() { `${t('views.document.delete.confirmTitle1')} ${multipleSelection.value.length} ${t('views.document.delete.confirmTitle2')}`, t('views.paragraph.delete.confirmMessage'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) @@ -294,7 +294,7 @@ function deleteParagraph(row: any) { `${t('views.paragraph.delete.confirmTitle')} ${row.title || '-'} ?`, t('views.paragraph.delete.confirmMessage'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/views/problem/index.vue b/ui/src/views/problem/index.vue index 1b7d8ee0c..dd34c1def 100644 --- a/ui/src/views/problem/index.vue +++ b/ui/src/views/problem/index.vue @@ -219,7 +219,7 @@ function deleteProblem(row: any) { `${t('views.problem.delete.confirmTitle')} ${row.content} ?`, `${t('views.problem.delete.confirmMessage1')} ${row.paragraph_count} ${t('views.problem.delete.confirmMessage2')}`, { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/views/team/index.vue b/ui/src/views/team/index.vue index 819515cfc..ccf8899fa 100644 --- a/ui/src/views/team/index.vue +++ b/ui/src/views/team/index.vue @@ -180,7 +180,7 @@ function deleteMember(row: TeamMember) { t('views.team.delete.confirmMessage'), { - confirmButtonText: t('views.team.delete.button'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/views/template/component/ModelCard.vue b/ui/src/views/template/component/ModelCard.vue index 823a826df..a8d8e4770 100644 --- a/ui/src/views/template/component/ModelCard.vue +++ b/ui/src/views/template/component/ModelCard.vue @@ -169,7 +169,7 @@ const deleteModel = () => { t('views.template.delete.confirmTitle'), `${t('views.template.delete.confirmMessage')}${props.model.name} ?`, { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/views/user-manage/index.vue b/ui/src/views/user-manage/index.vue index 06fc6acc3..6ce1cc07e 100644 --- a/ui/src/views/user-manage/index.vue +++ b/ui/src/views/user-manage/index.vue @@ -180,7 +180,7 @@ function deleteUserManage(row: any) { `${t('views.user.delete.confirmTitle')}${row.username} ?`, t('views.user.delete.confirmMessage'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' } ) diff --git a/ui/src/workflow/common/NodeContainer.vue b/ui/src/workflow/common/NodeContainer.vue index d3c070a3b..0d065f9d8 100644 --- a/ui/src/workflow/common/NodeContainer.vue +++ b/ui/src/workflow/common/NodeContainer.vue @@ -273,7 +273,7 @@ const copyNode = () => { } const deleteNode = () => { MsgConfirm(t('common.tip'), t('views.applicationWorkflow.delete.confirmTitle'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' }).then(() => { props.nodeModel.graphModel.deleteNode(props.nodeModel.id) diff --git a/ui/src/workflow/common/shortcut.ts b/ui/src/workflow/common/shortcut.ts index 74f57b29c..2b3235b6b 100644 --- a/ui/src/workflow/common/shortcut.ts +++ b/ui/src/workflow/common/shortcut.ts @@ -100,7 +100,7 @@ export function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) { return } MsgConfirm(t('common.tip'), t('views.applicationWorkflow.delete.confirmTitle'), { - confirmButtonText: t('common.delete'), + confirmButtonText: t('common.confirm'), confirmButtonClass: 'danger' }).then(() => { if (!keyboardOptions?.enabled) return true