mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 15:46:16 +08:00
Fix extension to work with latest state changes
This commit is contained in:
parent
061a8585c2
commit
78f8a4d310
|
@ -22,7 +22,7 @@ app.initializers.add('flarum-suspend', () => {
|
|||
items.add('suspend', Button.component({
|
||||
children: app.translator.trans('flarum-suspend.forum.user_controls.suspend_button'),
|
||||
icon: 'fas fa-ban',
|
||||
onclick: () => app.modal.show(new SuspendUserModal({user}))
|
||||
onclick: () => app.modal.show(SuspendUserModal, {user})
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user