mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 15:59:47 +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.
|
* Attributes for an alert component to show below the header.
|
||||||
*/
|
*/
|
||||||
alertAttrs!: AlertAttrs;
|
alertAttrs: AlertAttrs | null = null;
|
||||||
|
|
||||||
oninit(vnode: Mithril.VnodeDOM<ModalAttrs, this>) {
|
oninit(vnode: Mithril.VnodeDOM<ModalAttrs, this>) {
|
||||||
super.oninit(vnode);
|
super.oninit(vnode);
|
||||||
|
@ -122,7 +122,7 @@ export default abstract class Modal<ModalAttrs extends IInternalModalAttrs = IIn
|
||||||
/**
|
/**
|
||||||
* Get the title of the modal dialog.
|
* Get the title of the modal dialog.
|
||||||
*/
|
*/
|
||||||
abstract title(): string;
|
abstract title(): Mithril.Children;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the content of the modal.
|
* Get the content of the modal.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user