13 lines
655 B
TypeScript
13 lines
655 B
TypeScript
import { userActionHandler } from './action';
|
|
import { userReportHandler } from './report';
|
|
import registerEvents from 'retrospring/utilities/registerEvents';
|
|
|
|
export default (): void => {
|
|
registerEvents([
|
|
{ type: 'click', target: 'button[name=user-action]', handler: userActionHandler, global: true },
|
|
{ type: 'click', target: '[data-action=block], [data-action=unblock]', handler: userActionHandler, global: true },
|
|
{ type: 'click', target: '[data-action=mute], [data-action=unmute]', handler: userActionHandler, global: true },
|
|
{ type: 'click', target: 'a[data-action=report-user]', handler: userReportHandler, global: true }
|
|
]);
|
|
}
|