diff --git a/packages/frontend/src/components/BatchEditConnectionForm.vue b/packages/frontend/src/components/BatchEditConnectionForm.vue index 35791ba..f6d5b98 100644 --- a/packages/frontend/src/components/BatchEditConnectionForm.vue +++ b/packages/frontend/src/components/BatchEditConnectionForm.vue @@ -149,19 +149,13 @@ const handleSave = async () => { } if (successCount > 0) { - uiNotificationsStore.addNotification({ message: t('connections.batchEdit.updateSuccess', { count: successCount }), type: 'success' }); + uiNotificationsStore.addNotification({ message: t('common.updateSuccess', { count: successCount }), type: 'success' }); emit('saved'); } - if (successCount < props.connectionIds.length) { - uiNotificationsStore.addNotification({ message: t('connections.batchEdit.updatePartialFail', { failCount: props.connectionIds.length - successCount }), type: 'warning' }); - } - if (successCount === 0 && props.connectionIds.length > 0) { - uiNotificationsStore.addNotification({ message: t('connections.batchEdit.updateAllFail', '所有连接更新失败'), type: 'error' }); - } emit('update:visible', false); } catch (error: any) { console.error("Batch update error:", error); - uiNotificationsStore.addNotification({ message: error.message || t('connections.batchEdit.updateError', '批量更新时发生错误'), type: 'error' }); + uiNotificationsStore.addNotification({ message: error.message , type: 'error' }); } finally { isLoading.value = false; } diff --git a/packages/frontend/src/locales/en-US.json b/packages/frontend/src/locales/en-US.json index b3f2d45..4fb68cd 100644 --- a/packages/frontend/src/locales/en-US.json +++ b/packages/frontend/src/locales/en-US.json @@ -981,6 +981,7 @@ "restore": "Restore", "minimize": "Minimize", "send":"Send", + "updateSuccess":"Update successful", "copied": "Copied to clipboard" }, "layoutConfigurator": { diff --git a/packages/frontend/src/locales/ja-JP.json b/packages/frontend/src/locales/ja-JP.json index b017c93..c9976d2 100644 --- a/packages/frontend/src/locales/ja-JP.json +++ b/packages/frontend/src/locales/ja-JP.json @@ -106,6 +106,7 @@ "restore": "元に戻す", "minimize": "最小化", "send":"送信する", + "updateSuccess":"更新に成功しました", "copied": "クリップボードにコピーしました" }, "connections": { diff --git a/packages/frontend/src/locales/zh-CN.json b/packages/frontend/src/locales/zh-CN.json index 7b511f4..0dfbc42 100644 --- a/packages/frontend/src/locales/zh-CN.json +++ b/packages/frontend/src/locales/zh-CN.json @@ -983,7 +983,8 @@ "restore": "还原", "minimize": "最小化", "send":"发送", - "copied": "已复制到剪贴板" + "copied": "已复制到剪贴板", + "updateSuccess":"更新成功" }, "layoutConfigurator": { "title": "布局管理器",