update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -981,6 +981,7 @@
|
||||
"restore": "Restore",
|
||||
"minimize": "Minimize",
|
||||
"send":"Send",
|
||||
"updateSuccess":"Update successful",
|
||||
"copied": "Copied to clipboard"
|
||||
},
|
||||
"layoutConfigurator": {
|
||||
|
||||
@@ -106,6 +106,7 @@
|
||||
"restore": "元に戻す",
|
||||
"minimize": "最小化",
|
||||
"send":"送信する",
|
||||
"updateSuccess":"更新に成功しました",
|
||||
"copied": "クリップボードにコピーしました"
|
||||
},
|
||||
"connections": {
|
||||
|
||||
@@ -983,7 +983,8 @@
|
||||
"restore": "还原",
|
||||
"minimize": "最小化",
|
||||
"send":"发送",
|
||||
"copied": "已复制到剪贴板"
|
||||
"copied": "已复制到剪贴板",
|
||||
"updateSuccess":"更新成功"
|
||||
},
|
||||
"layoutConfigurator": {
|
||||
"title": "布局管理器",
|
||||
|
||||
Reference in New Issue
Block a user