Firewall Dialog Account/Tenant Selection (#22695)

* preselect account in firewall dialog from connection details

* cleanup

* fix element reference

* add initial tenant selection

* fix compile & cleanup

* pr comments

* change to private
This commit is contained in:
Christopher Suh
2023-04-12 15:59:31 -07:00
committed by GitHub
parent 62c2fd3290
commit 897f026d1e
6 changed files with 67 additions and 3 deletions

View File

@@ -322,6 +322,10 @@ export class FirewallRuleDialog extends Modal {
}
}
public setInitialAccountTenant(account: string, tenant: string) {
this._accountPickerService.setInitialAccountTenant(account, tenant);
}
public onAccountSelectionChange(account: azdata.Account | undefined): void {
this.viewModel.selectedAccount = account;
if (account && !account.isStale) {