feat(connection): add editable connection notes

This commit is contained in:
zipg authored and GitHub committed 2026-07-27 17:01:23 +08:00
1 parent 38c2bced92
commit 74c603ee9d
35 files changed
+126 -2

No files matched your search

@@ -2119,11 +2119,13 @@ export const useConnectionStore = defineStore("connection", () => {
config = normalizeConnection(config);
const idx = connections.value.findIndex((c) => c.id === config.id);
if (idx < 0) return;
const runtimeConfigChanged = connectionConfigFingerprint(connections.value[idx]) !== connectionConfigFingerprint(config);
const nextConnections = [...connections.value];
nextConnections[idx] = config;
await persistConnections(nextConnections);
connections.value = nextConnections;
rebuildTreeNodes();
if (!runtimeConfigChanged) return;
connectedIds.value.delete(config.id);
clearConnectionIdentifierQuote(config.id);
clearConnectionHealthCheck(config.id);