Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Feb 19, 2024
1 parent aaeee51 commit f5c34f3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 51 deletions.
22 changes: 0 additions & 22 deletions js/src/forum/addRouteToSessionDropdown.js

This file was deleted.

21 changes: 0 additions & 21 deletions js/src/forum/extend.js

This file was deleted.

4 changes: 0 additions & 4 deletions js/src/forum/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@ import addComposerItems from './addComposerItems';
import addPollsToPost from './addPollsToPost';
import addPostControls from './addPostControls';
import addNavItem from './addNavItem';
import addRouteToSessionDropdown from './addRouteToSessionDropdown';

export * from './components';
export * from './models';

import PollsPage from './components/PollsPage';

app.initializers.add('fof/polls', () => {
addDiscussionBadge();
addComposerItems();
addPollsToPost();
addPostControls();
addNavItem();
addRouteToSessionDropdown();
});

export { default as extend } from './extend';
2 changes: 1 addition & 1 deletion js/src/forum/utils/PollControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
},

/**
* Get controls for direkt modifcation actions on polls (e.g. vote, view voters).
* Get controls for direct modifcation actions on polls (e.g. vote, view voters).
*/
pollControls(poll: Poll, context: Component): ItemList<Mithril.Children> {
const items = new ItemList<Mithril.Children>();
Expand Down
5 changes: 2 additions & 3 deletions resources/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ fof-polls:
cannot_start_poll_button: Cannot Start Poll

poll_controls:
view_label: View Poll
edit_label: Edit Poll
delete_label: Delete Poll
edit_label: Edit
delete_label: Delete

poll_form:
delete: Delete Poll
Expand Down

0 comments on commit f5c34f3

Please sign in to comment.