mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
Hide tenant dropdown until account is refreshed (#23346)
This commit is contained in:
@@ -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!);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user