mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -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) => {
|
connections?.forEach((conn) => {
|
||||||
this._childConnections = this._childConnections.filter((curConn) => { return curConn.id !== conn.id; });
|
this._childConnections = this._childConnections.filter((curConn) => { return curConn.id !== conn.id; });
|
||||||
conn.parent = this;
|
conn.parent = this;
|
||||||
|
conn.groupId = this.id;
|
||||||
this._childConnections.push(conn);
|
this._childConnections.push(conn);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -153,6 +154,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
|
|||||||
groups?.forEach((group) => {
|
groups?.forEach((group) => {
|
||||||
this._childGroups = this._childGroups.filter((grp) => { return group.id !== grp.id; });
|
this._childGroups = this._childGroups.filter((grp) => { return group.id !== grp.id; });
|
||||||
group.parent = this;
|
group.parent = this;
|
||||||
|
group.parentId = this.id;
|
||||||
this._childGroups.push(group);
|
this._childGroups.push(group);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -179,6 +181,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
|
|||||||
const matchingConnection = this.getMatchingConnection(connection);
|
const matchingConnection = this.getMatchingConnection(connection);
|
||||||
connection.parent = this;
|
connection.parent = this;
|
||||||
connection.groupId = this.id;
|
connection.groupId = this.id;
|
||||||
|
connection.groupFullName = this.fullName;
|
||||||
if (matchingConnection) {
|
if (matchingConnection) {
|
||||||
this.replaceConnection(connection, matchingConnection.id);
|
this.replaceConnection(connection, matchingConnection.id);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user