mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix set authenticationType of undefined error (#21982)
This commit is contained in:
@@ -670,8 +670,10 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
|||||||
this._passwordInputBox.enable();
|
this._passwordInputBox.enable();
|
||||||
this._rememberPasswordCheckBox.enabled = true;
|
this._rememberPasswordCheckBox.enabled = true;
|
||||||
|
|
||||||
|
if (this._initialConnectionInfo) {
|
||||||
this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin;
|
this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin;
|
||||||
if (this._initialConnectionInfo && this._initialConnectionInfo.userName) {
|
|
||||||
|
if (this._initialConnectionInfo.userName) {
|
||||||
const setPasswordInputBox = (profile: IConnectionProfile) => {
|
const setPasswordInputBox = (profile: IConnectionProfile) => {
|
||||||
this._passwordInputBox.value = profile.password;
|
this._passwordInputBox.value = profile.password;
|
||||||
};
|
};
|
||||||
@@ -681,6 +683,7 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private async fillInAzureAccountOptions(): Promise<void> {
|
private async fillInAzureAccountOptions(): Promise<void> {
|
||||||
let oldSelection = this._azureAccountDropdown.value;
|
let oldSelection = this._azureAccountDropdown.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user