mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Rename onshow and onhide
animateShow and animateHide are more descriptive
This commit is contained in:
@@ -24,7 +24,7 @@ export default class Modal extends Component {
|
||||
oncreate(vnode) {
|
||||
super.oncreate(vnode);
|
||||
|
||||
this.attrs.onshow(() => this.onready());
|
||||
this.attrs.animateShow(() => this.onready());
|
||||
}
|
||||
|
||||
onbeforeremove() {
|
||||
@@ -32,7 +32,7 @@ export default class Modal extends Component {
|
||||
// we've just opened up a new one, and accordingly,
|
||||
// we don't need to show a hide animation.
|
||||
if (!this.attrs.state.modal) {
|
||||
this.attrs.onhide();
|
||||
this.attrs.animateHide();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user