Skip to content

Commit

Permalink
Update ItemList API
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Oct 30, 2015
1 parent a4d38a5 commit f18ce60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/forum/src/components/DiscussionPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class DiscussionPage extends BaseDiscussionPage {
sidebarItems() {
const items = super.sidebarItems();

delete items.scrubber;
items.remove('scrubber');

return items;
}
Expand Down
4 changes: 2 additions & 2 deletions js/forum/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Drawer from 'flarum/utils/Drawer';

import DiscussionPage from 'flarum/embed/components/DiscussionPage';

app.initializers.boot.content = app => {
app.initializers.replace('boot', () => {
m.route.mode = 'pathname';

override(m, 'route', function(original, root, arg1, arg2, vdom) {
Expand Down Expand Up @@ -56,4 +56,4 @@ app.initializers.boot.content = app => {
basePath + '/',
mapRoutes(app.routes, basePath)
);
};
});

0 comments on commit f18ce60

Please sign in to comment.