mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 20:14:00 +08:00
alertAttrs
can be null
This commit is contained in:
parent
174345cf22
commit
162c60e763
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user