mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 01:25:37 -05:00
Fixing group name in edit connection dialog (#23010)
* Fixing group name in edit connection dialog * Fixing test * adding back group name * Keeping old apis the same
This commit is contained in:
@@ -144,6 +144,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
|
||||
connections?.forEach((conn) => {
|
||||
this._childConnections = this._childConnections.filter((curConn) => { return curConn.id !== conn.id; });
|
||||
conn.parent = this;
|
||||
conn.groupId = this.id;
|
||||
this._childConnections.push(conn);
|
||||
});
|
||||
|
||||
@@ -153,6 +154,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
|
||||
groups?.forEach((group) => {
|
||||
this._childGroups = this._childGroups.filter((grp) => { return group.id !== grp.id; });
|
||||
group.parent = this;
|
||||
group.parentId = this.id;
|
||||
this._childGroups.push(group);
|
||||
});
|
||||
}
|
||||
@@ -179,6 +181,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
|
||||
const matchingConnection = this.getMatchingConnection(connection);
|
||||
connection.parent = this;
|
||||
connection.groupId = this.id;
|
||||
connection.groupFullName = this.fullName;
|
||||
if (matchingConnection) {
|
||||
this.replaceConnection(connection, matchingConnection.id);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user