add Encryption related welcome msg (#21048)

This commit is contained in:
Hai Cao
2022-11-01 09:42:16 -07:00
committed by GitHub
parent bb24eb29c5
commit 7ee9a22f03
4 changed files with 92 additions and 1 deletions

View File

@@ -106,11 +106,15 @@ export class ErrorMessageDialog extends Modal {
// Nothing to re-layout
}
private updateDialogBody(): void {
protected updateDialogBody(): void {
DOM.clearNode(this._body!);
DOM.append(this._body!, DOM.$('div.error-message')).innerText = this._message!;
}
protected getBody(): HTMLElement {
return this._body;
}
private updateIconTitle(): void {
switch (this._severity) {
case Severity.Error: