show unsaved connections in connection tree

This commit is contained in:
SPRINX0\prochazka
2024-12-03 14:54:22 +01:00
parent 6b3f398de3
commit 72bd536aec
4 changed files with 19 additions and 12 deletions

View File

@@ -12,7 +12,7 @@
...(allowChooseModel ? [{ label: '(DB Model)', value: '__model' }] : []),
..._.sortBy(
($connections || [])
.filter(conn => !conn.unsaved && (direction == 'target' ? !conn.isReadOnly : true))
.filter(conn => (direction == 'target' ? !conn.isReadOnly : true))
.map(conn => ({
value: conn._id,
label: getConnectionLabel(conn),