mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 09:35:38 -05:00
Fix wizard not displaying error messages (#8545)
This commit is contained in:
@@ -481,19 +481,23 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
this._messageDetail.innerText = description;
|
||||
}
|
||||
DOM.removeNode(this._messageDetail);
|
||||
if (this._messageSummaryText) {
|
||||
if (this._useDefaultMessageBoxLocation) {
|
||||
DOM.prepend(this._modalContent, (this._messageElement));
|
||||
}
|
||||
} else {
|
||||
// Set the focus manually otherwise it'll escape the dialog to something behind it
|
||||
this.setInitialFocusedElement();
|
||||
DOM.removeNode(this._messageElement);
|
||||
}
|
||||
this.messagesElementVisible = !!this._messageSummaryText;
|
||||
this.updateExpandMessageState();
|
||||
}
|
||||
}
|
||||
|
||||
protected set messagesElementVisible(visible: boolean) {
|
||||
if (visible) {
|
||||
if (this._useDefaultMessageBoxLocation) {
|
||||
DOM.prepend(this._modalContent, (this._messageElement));
|
||||
}
|
||||
} else {
|
||||
// Set the focus manually otherwise it'll escape the dialog to something behind it
|
||||
this.setInitialFocusedElement();
|
||||
DOM.removeNode(this._messageElement);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set spinner element to show or hide
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user