mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
alertAttrs
can be null
This commit is contained in:
@@ -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.
|
||||||
|
Reference in New Issue
Block a user