mirror of
https://github.com/flarum/framework.git
synced 2025-01-31 18:34:01 +08:00
Update ItemList API
This commit is contained in:
parent
fc339254cf
commit
714464ab03
|
@ -29,7 +29,7 @@ export default class DiscussionPage extends BaseDiscussionPage {
|
|||
sidebarItems() {
|
||||
const items = super.sidebarItems();
|
||||
|
||||
delete items.scrubber;
|
||||
items.remove('scrubber');
|
||||
|
||||
return items;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
@ -56,4 +56,4 @@ app.initializers.boot.content = app => {
|
|||
basePath + '/',
|
||||
mapRoutes(app.routes, basePath)
|
||||
);
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user