Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function submitEdit() {
/* -------------------- 删除 -------------------- */

function handleDelete(node: TreeNode) {
MsgConfirm(t('common.dialogs.notice'), t('dynamicForm.tree.delete.title', { name: node.label }), { type: 'warning' })
MsgConfirm(t('dynamicForm.tree.delete.title', { name: node.label }), undefined, { type: 'warning' })
.then(() => {
const removed = removeNodeById(formValue.value.treeData, node.id)
if (removed) {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/en-US/common/dynamic-form.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"addRoot": "Add root option",
"addChild": "Add child option",
"delete": {
"title": "Delete: {name}?"
"title": "Delete option: {name}?"
}
},
"visibility": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/en-US/common/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"dialogs": {
"notice": "Notice",
"deleteWarning": "This action cannot be undone.",
"unsavedChanges": "Leave without saving your changes"
"unsavedChanges": "Leave without saving your changes?"
},
"messages": {
"saveSuccess": "Saved successfully",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/en-US/knowledge/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"description": "Set this limit according to your server capacity to avoid service crashes."
},
"embeddingModel": {
"changeConfirm": "Changing the embedding requires regenerating embeddings for this knowledge. Continue saving"
"changeConfirm": "Changing the embedding model requires regenerating embeddings for this knowledge. Continue saving?"
}
},
"documentStrategy": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/en-US/tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"batchTitle": "Delete the {count} selected tool? | Delete the {count} selected tools?"
},
"disable": {
"title": "Disable tool",
"title": "Disable tool: {name}?",
"description": "Resources that use this tool will fail when they run."
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-CN/common/dynamic-form.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"addRoot": "添加一级选项",
"addChild": "添加子选项",
"delete": {
"title": "是否删除:{name}?"
"title": "是否删除选项:{name}?"
}
},
"visibility": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-CN/common/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"dialogs": {
"notice": "提示",
"deleteWarning": "删除后无法恢复,请谨慎操作。",
"unsavedChanges": "当前的更改尚未保存,确定退出吗"
"unsavedChanges": "当前的更改尚未保存,确定退出吗?"
},
"messages": {
"saveSuccess": "保存成功",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-CN/knowledge/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"description": "建议根据服务器配置调整,否则可能会造成服务宕机"
},
"embeddingModel": {
"changeConfirm": "修改知识库向量模型后,需要对知识库向量化,是否继续保存"
"changeConfirm": "修改知识库向量模型后,需要对知识库向量化,是否继续保存?"
}
},
"documentStrategy": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-CN/tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"batchTitle": "是否删除选中的{count}个工具?"
},
"disable": {
"title": "是否禁用工具",
"title": "是否禁用工具:{name}?",
"description": "禁用后,引用了该工具的资源执行会报错,请谨慎操作。"
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-Hant/common/dynamic-form.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
"addRoot": "添加一級選項",
"addChild": "添加子選項",
"delete": {
"title": "是否刪除:{name}?"
"title": "是否刪除選項:{name}?"
}
},
"visibility": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-Hant/common/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"dialogs": {
"notice": "提示",
"deleteWarning": "刪除後無法恢復,請謹慎操作。",
"unsavedChanges": "當前的更改尚未保存,確定退出嗎"
"unsavedChanges": "當前的更改尚未保存,確定退出嗎?"
},
"messages": {
"saveSuccess": "保存成功",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-Hant/knowledge/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"description": "建議根據服務器配置調整,否則可能會造成服務宕機"
},
"embeddingModel": {
"changeConfirm": "修改知識庫向量模型後,需要對知識庫向量化,是否繼續保存"
"changeConfirm": "修改知識庫向量模型後,需要對知識庫向量化,是否繼續保存?"
}
},
"documentStrategy": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/locales/zh-Hant/tool.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"batchTitle": "是否刪除選中的{count}個工具?"
},
"disable": {
"title": "是否禁用工具",
"title": "是否禁用工具:{name}?",
"description": "禁用後,引用了該工具的資源執行會報錯,請謹慎操作。"
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/knowledge-detail/setting/base/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function handleSave() {

const embeddingModelChanged = originalEmbeddingModelId.value !== payload.embedding_model_id
const confirmation = embeddingModelChanged
? MsgConfirm(t('common.dialogs.notice'), `${t('knowledge.baseSettings.embeddingModel.changeConfirm')}?`, {
? MsgConfirm(t('common.dialogs.notice'), t('knowledge.baseSettings.embeddingModel.changeConfirm'), {
confirmButtonText: t('knowledge.actions.generateEmbeddings'),
confirmButtonType: 'primary',
})
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/tool/tool-card/ToolStatusSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const initParamDrawerRef = useTemplateRef<InstanceType<typeof InitParamDrawer>>(
function handleToolStatusChange() {
if (loading.value) return false
if (props.tool.is_active) {
return MsgConfirm(`${t('tool.disable.title')}: ${props.tool.name}?`, t('tool.disable.description'), {
return MsgConfirm(t('tool.disable.title', { name: props.tool.name }), t('tool.disable.description'), {
cancelButtonText: t('common.actions.cancel'),
confirmButtonText: t('common.actions.disable'),
})
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/tool/tool-form/DataSourceFormDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function handleBeforeClose() {
visible.value = false
return
}
MsgConfirm(t('common.dialogs.notice'), `${t('common.dialogs.unsavedChanges')}?`, {
MsgConfirm(t('common.dialogs.notice'), t('common.dialogs.unsavedChanges'), {
confirmButtonText: t('common.actions.comfirm'),
confirmButtonType: 'primary',
})
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/tool/tool-form/McpFormDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function handleBeforeClose() {
visible.value = false
return
}
MsgConfirm(t('common.dialogs.notice'), `${t('common.dialogs.unsavedChanges')}?`, {
MsgConfirm(t('common.dialogs.notice'), t('common.dialogs.unsavedChanges'), {
confirmButtonText: t('common.actions.comfirm'),
confirmButtonType: 'primary',
})
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/tool/tool-form/SkillToolFormDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function handleBeforeClose() {
visible.value = false
return
}
MsgConfirm(t('common.dialogs.notice'), `${t('common.dialogs.unsavedChanges')}?`, {
MsgConfirm(t('common.dialogs.notice'), t('common.dialogs.unsavedChanges'), {
confirmButtonText: t('common.actions.comfirm'),
confirmButtonType: 'primary',
})
Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/tool/tool-form/tool-custom/ToolFormDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function handleBeforeClose() {
visible.value = false
return
}
MsgConfirm(t('common.dialogs.notice'), `${t('common.dialogs.unsavedChanges')}?`, {
MsgConfirm(t('common.dialogs.notice'), t('common.dialogs.unsavedChanges'), {
confirmButtonText: t('common.actions.comfirm'),
confirmButtonType: 'primary',
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function copyNode() {
}

function deleteNode() {
MsgConfirm(t('common.dialogs.notice'), t('workflow.node.delete.title', { name: nodeProperties.value.stepName || '-' }), {
MsgConfirm(t('workflow.node.delete.title', { name: nodeProperties.value.stepName || '-' }), undefined, {
confirmButtonText: t('common.actions.comfirm'),
confirmButtonClass: 'danger',
}).then(() => {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/workflow-canvas/core/shortcut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,10 @@ export function initDefaultShortcut(lf: LogicFlow, graph: GraphModel) {
return
}
MsgConfirm(
t('common.dialogs.notice'),
elements.nodes.length === 1
? t('workflow.node.delete.title', { name: String(elements.nodes[0]?.properties?.stepName || '-') })
: t('workflow.node.delete.batchTitle', { count: elements.nodes.length }, elements.nodes.length),
undefined,
{ confirmButtonText: t('common.actions.comfirm'), confirmButtonClass: 'danger' },
).then(() => {
if (!keyboardOptions?.enabled) return true
Expand Down
Loading