mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
Hide tenant dropdown until account is refreshed (#23346)
This commit is contained in:
@@ -123,7 +123,7 @@ export class ApplyFilterAction extends Action {
|
||||
*/
|
||||
export class RefreshAccountAction extends Action {
|
||||
public static ID = 'account.refresh';
|
||||
public static LABEL = localize('refreshAccount', "Reenter your credentials");
|
||||
public static LABEL = localize('refreshAccount', "Refresh your credentials");
|
||||
public account?: azdata.Account;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -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