From 000d0642768bc87820f944f2d60d0b448c093c4f Mon Sep 17 00:00:00 2001 From: Matt Irvine Date: Wed, 22 Aug 2018 11:57:29 -0700 Subject: [PATCH] Show no account message after deleting all azure accounts (#2294) --- .../accountDialog/accountDialog.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/sql/parts/accountManagement/accountDialog/accountDialog.ts b/src/sql/parts/accountManagement/accountDialog/accountDialog.ts index fc3c2c3935..db17e6480c 100644 --- a/src/sql/parts/accountManagement/accountDialog/accountDialog.ts +++ b/src/sql/parts/accountManagement/accountDialog/accountDialog.ts @@ -171,13 +171,17 @@ export class AccountDialog extends Modal { if (!this.isEmptyLinkedAccount()) { this.showSplitView(); } else { - this._splitViewContainer.hidden = true; - this._noaccountViewContainer.hidden = false; - this._addAccountButton.focus(); + this.showNoAccountContainer(); } } + private showNoAccountContainer() { + this._splitViewContainer.hidden = true; + this._noaccountViewContainer.hidden = false; + this._addAccountButton.focus(); + } + private showSplitView() { this._splitViewContainer.hidden = false; this._noaccountViewContainer.hidden = true; @@ -298,6 +302,10 @@ export class AccountDialog extends Modal { this.showSplitView(); } + if (this.isEmptyLinkedAccount() && this._noaccountViewContainer.hidden) { + this.showNoAccountContainer(); + } + this.layout(); } }