Fix connection group input not correctly selecting nested groups (#7625)

This commit is contained in:
Charles Gagnon
2019-10-10 11:21:13 -07:00
committed by GitHub
parent 4d618c5ef1
commit 2aa7a145d4

View File

@@ -547,7 +547,12 @@ export class ConnectionWidget extends lifecycle.Disposable {
if (this._serverGroupSelectBox) {
this._serverGroupOptions = connectionGroups;
this._serverGroupOptions.push(this._addNewServerGroup);
this._serverGroupSelectBox.setOptions(this._serverGroupOptions.map(g => g.name));
this._serverGroupSelectBox.setOptions(this._serverGroupOptions.map(g => {
if (g instanceof ConnectionProfileGroup) {
return g.fullName;
}
return g.name;
}));
if (groupName) {
this._serverGroupSelectBox.selectWithOptionName(groupName);
this._previousGroupOption = this._serverGroupSelectBox.value;