diff --git a/js/src/forum/components/ComposePollPage.tsx b/js/src/forum/components/ComposePollPage.tsx index 88ceda83..f433b3e3 100644 --- a/js/src/forum/components/ComposePollPage.tsx +++ b/js/src/forum/components/ComposePollPage.tsx @@ -7,6 +7,10 @@ import PollForm from './PollForm'; import PollFormState from '../states/PollFormState'; import ComposePollHero from './ComposePollHero'; import Button from 'flarum/common/components/Button'; +import listItems from 'flarum/common/helpers/listItems'; +import ItemList from 'flarum/common/utils/ItemList'; +import SelectDropdown from 'flarum/common/components/SelectDropdown'; +import IndexPage from 'flarum/forum/components/IndexPage'; export default class ComposePollPage extends Page { poll: Poll | null | undefined = null; @@ -55,7 +59,14 @@ export default class ComposePollPage extends Page {
- +
+ +
+ +
+
); @@ -97,4 +108,25 @@ export default class ComposePollPage extends Page { m.route.set(app.route('fof.polls.list')); } } + + sidebarItems(): ItemList { + const items = new ItemList(); + + items.add( + 'nav', + + {this.navItems().toArray()} + + ); + + return items; + } + + navItems() { + return IndexPage.prototype.navItems(); + } } diff --git a/js/src/forum/components/PollsPage.tsx b/js/src/forum/components/PollsPage.tsx index 226076fe..8f415b47 100644 --- a/js/src/forum/components/PollsPage.tsx +++ b/js/src/forum/components/PollsPage.tsx @@ -71,7 +71,7 @@ export default class PollsPage extends Page { ); } - sidebarItems() { + sidebarItems(): ItemList { const items = new ItemList(); const canStartPoll = app.forum.attribute('canStartGlobalPolls');