mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +02:00
Add init hook as a way to effectively monkey patch constructors
Related to #246
This commit is contained in:
@@ -80,8 +80,8 @@ export default class PostsUserPage extends UserPage {
|
||||
* Initialize the component with a user, and trigger the loading of their
|
||||
* activity feed.
|
||||
*/
|
||||
init(user) {
|
||||
super.init(user);
|
||||
show(user) {
|
||||
super.show(user);
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
|
Reference in New Issue
Block a user