mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51: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 {
|
export class RefreshAccountAction extends Action {
|
||||||
public static ID = 'account.refresh';
|
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;
|
public account?: azdata.Account;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@@ -256,9 +256,12 @@ export class AccountPicker extends Disposable {
|
|||||||
|
|
||||||
private onAccountSelectionChange(account: azdata.Account | undefined) {
|
private onAccountSelectionChange(account: azdata.Account | undefined) {
|
||||||
this.viewModel.selectedAccount = account;
|
this.viewModel.selectedAccount = account;
|
||||||
if (account && account.isStale) {
|
if (!account) {
|
||||||
|
DOM.hide(this._tenantContainer!);
|
||||||
|
} else if (account && account.isStale) {
|
||||||
this._refreshAccountAction!.account = account;
|
this._refreshAccountAction!.account = account;
|
||||||
DOM.show(this._refreshContainer!);
|
DOM.show(this._refreshContainer!);
|
||||||
|
DOM.hide(this._tenantContainer!);
|
||||||
} else if (account) {
|
} else if (account) {
|
||||||
DOM.hide(this._refreshContainer!);
|
DOM.hide(this._refreshContainer!);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user