This commit is contained in:
Baobhan Sith
2025-05-16 14:03:23 +08:00
parent f17fb2be15
commit 8d0d1855ba
4 changed files with 6 additions and 9 deletions
@@ -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;
}
+1
View File
@@ -981,6 +981,7 @@
"restore": "Restore",
"minimize": "Minimize",
"send":"Send",
"updateSuccess":"Update successful",
"copied": "Copied to clipboard"
},
"layoutConfigurator": {
+1
View File
@@ -106,6 +106,7 @@
"restore": "元に戻す",
"minimize": "最小化",
"send":"送信する",
"updateSuccess":"更新に成功しました",
"copied": "クリップボードにコピーしました"
},
"connections": {
+2 -1
View File
@@ -983,7 +983,8 @@
"restore": "还原",
"minimize": "最小化",
"send":"发送",
"copied": "已复制到剪贴板"
"copied": "已复制到剪贴板",
"updateSuccess":"更新成功"
},
"layoutConfigurator": {
"title": "布局管理器",