Fix extension to work with latest state changes

This commit is contained in:
Alexander Skvortsov 2020-07-01 20:05:06 -04:00
parent 061a8585c2
commit 78f8a4d310

View File

@ -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})
}));
}
});