Show no account message after deleting all azure accounts (#2294)

This commit is contained in:
Matt Irvine
2018-08-22 11:57:29 -07:00
committed by GitHub
parent 600a78f35f
commit 000d064276

View File

@@ -171,13 +171,17 @@ export class AccountDialog extends Modal {
if (!this.isEmptyLinkedAccount()) { if (!this.isEmptyLinkedAccount()) {
this.showSplitView(); this.showSplitView();
} else { } else {
this.showNoAccountContainer();
}
}
private showNoAccountContainer() {
this._splitViewContainer.hidden = true; this._splitViewContainer.hidden = true;
this._noaccountViewContainer.hidden = false; this._noaccountViewContainer.hidden = false;
this._addAccountButton.focus(); this._addAccountButton.focus();
} }
}
private showSplitView() { private showSplitView() {
this._splitViewContainer.hidden = false; this._splitViewContainer.hidden = false;
this._noaccountViewContainer.hidden = true; this._noaccountViewContainer.hidden = true;
@@ -298,6 +302,10 @@ export class AccountDialog extends Modal {
this.showSplitView(); this.showSplitView();
} }
if (this.isEmptyLinkedAccount() && this._noaccountViewContainer.hidden) {
this.showNoAccountContainer();
}
this.layout(); this.layout();
} }
} }