Retrospring/app/javascript/retrospring/features/inbox/index.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
488 B
TypeScript
Raw Normal View History

import registerEvents from 'utilities/registerEvents';
import registerInboxEntryEvents from './entry';
import { deleteAllAuthorQuestionsHandler, deleteAllQuestionsHandler } from './delete';
2021-08-11 05:10:24 -07:00
export default (): void => {
registerEvents([
{ type: 'click', target: '#ib-delete-all', handler: deleteAllQuestionsHandler, global: true },
2023-01-28 10:17:04 -08:00
{ type: 'click', target: '#ib-delete-all-author', handler: deleteAllAuthorQuestionsHandler, global: true }
]);
2021-08-11 05:10:24 -07:00
registerInboxEntryEvents();
2021-08-11 05:10:24 -07:00
}