Skip to content

Commit

Permalink
chore: export PollControls
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Mar 14, 2024
1 parent 5f99452 commit ab896b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Empty file added js/src/@types/shims.d.ts
Empty file.
1 change: 1 addition & 0 deletions js/src/forum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import addNavItem from './addNavItem';
export * from './components';
export * from './models';
export * from './states';
export * from './utils';

app.initializers.add('fof/polls', () => {
addDiscussionBadge();
Expand Down
2 changes: 1 addition & 1 deletion js/src/forum/utils/PollControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default {
},

/**
* Delete the user.
* Delete the poll.
*/
async deleteAction(poll: Poll): Promise<void> {
if (!confirm(app.translator.trans(`fof-polls.forum.poll_controls.delete_confirmation`) as string)) {
Expand Down
5 changes: 5 additions & 0 deletions js/src/forum/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import PollControls from './PollControls';

export const utils = {
PollControls
}

0 comments on commit ab896b8

Please sign in to comment.