When we click in recent connections the connection profile doesn't get updated (#1060)

* Trigger the update provider dropdown when a provider value is set
This commit is contained in:
Anup N. Kamath
2018-04-04 10:36:04 -07:00
committed by GitHub
parent 90454fbe87
commit 6dca896768
2 changed files with 3 additions and 1 deletions

View File

@@ -205,13 +205,13 @@ export class ConnectionDialogService implements IConnectionDialogService {
private handleShowUiComponent(input: OnShowUIResponse) {
this._currentProviderType = input.selectedProviderType;
this._model.providerName = this.getCurrentProviderName();
this._model = new ConnectionProfile(this._capabilitiesService, this._model);
this.uiController.showUiComponent(input.container);
}
private handleInitDialog() {
this.uiController.initDialog(this._model);
}
private handleFillInConnectionInputs(connectionInfo: IConnectionProfile): void {

View File

@@ -453,6 +453,8 @@ export class ConnectionDialogWidget extends Modal {
public updateProvider(displayName: string) {
this._providerTypeSelectBox.selectWithOptionName(displayName);
this.onProviderTypeSelected(displayName);
}
public set databaseDropdownExpanded(val: boolean) {