update
This commit is contained in:
@@ -149,19 +149,13 @@ const handleSave = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (successCount > 0) {
|
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');
|
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);
|
emit('update:visible', false);
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error("Batch update error:", error);
|
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 {
|
} finally {
|
||||||
isLoading.value = false;
|
isLoading.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -981,6 +981,7 @@
|
|||||||
"restore": "Restore",
|
"restore": "Restore",
|
||||||
"minimize": "Minimize",
|
"minimize": "Minimize",
|
||||||
"send":"Send",
|
"send":"Send",
|
||||||
|
"updateSuccess":"Update successful",
|
||||||
"copied": "Copied to clipboard"
|
"copied": "Copied to clipboard"
|
||||||
},
|
},
|
||||||
"layoutConfigurator": {
|
"layoutConfigurator": {
|
||||||
|
|||||||
@@ -106,6 +106,7 @@
|
|||||||
"restore": "元に戻す",
|
"restore": "元に戻す",
|
||||||
"minimize": "最小化",
|
"minimize": "最小化",
|
||||||
"send":"送信する",
|
"send":"送信する",
|
||||||
|
"updateSuccess":"更新に成功しました",
|
||||||
"copied": "クリップボードにコピーしました"
|
"copied": "クリップボードにコピーしました"
|
||||||
},
|
},
|
||||||
"connections": {
|
"connections": {
|
||||||
|
|||||||
@@ -983,7 +983,8 @@
|
|||||||
"restore": "还原",
|
"restore": "还原",
|
||||||
"minimize": "最小化",
|
"minimize": "最小化",
|
||||||
"send":"发送",
|
"send":"发送",
|
||||||
"copied": "已复制到剪贴板"
|
"copied": "已复制到剪贴板",
|
||||||
|
"updateSuccess":"更新成功"
|
||||||
},
|
},
|
||||||
"layoutConfigurator": {
|
"layoutConfigurator": {
|
||||||
"title": "布局管理器",
|
"title": "布局管理器",
|
||||||
|
|||||||
Reference in New Issue
Block a user