mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +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.
|
||||
*/
|
||||
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.
|
||||
|
Reference in New Issue
Block a user