Hide tenant dropdown until account is refreshed (#23346)

This commit is contained in:
Cheena Malhotra
2023-06-08 09:46:35 -07:00
committed by GitHub
parent 8c2c38c859
commit 50db8578b9
2 changed files with 5 additions and 2 deletions

View File

@@ -256,9 +256,12 @@ export class AccountPicker extends Disposable {
private onAccountSelectionChange(account: azdata.Account | undefined) {
this.viewModel.selectedAccount = account;
if (account && account.isStale) {
if (!account) {
DOM.hide(this._tenantContainer!);
} else if (account && account.isStale) {
this._refreshAccountAction!.account = account;
DOM.show(this._refreshContainer!);
DOM.hide(this._tenantContainer!);
} else if (account) {
DOM.hide(this._refreshContainer!);