mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Show no account message after deleting all azure accounts (#2294)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user