alertAttrs can be null

This commit is contained in:
Alexander Skvortsov 2021-12-12 15:44:09 -05:00
parent 174345cf22
commit 162c60e763
No known key found for this signature in database
GPG Key ID: C4E3BBF9C3412B4C

View File

@ -30,7 +30,7 @@ export default abstract class Modal<ModalAttrs extends IInternalModalAttrs = IIn
/**
* Attributes for an alert component to show below the header.
*/
alertAttrs!: AlertAttrs;
alertAttrs: AlertAttrs | null = null;
oninit(vnode: Mithril.VnodeDOM<ModalAttrs, this>) {
super.oninit(vnode);
@ -122,7 +122,7 @@ export default abstract class Modal<ModalAttrs extends IInternalModalAttrs = IIn
/**
* Get the title of the modal dialog.
*/
abstract title(): string;
abstract title(): Mithril.Children;
/**
* Get the content of the modal.