mirror of
https://github.com/flarum/core.git
synced 2025-08-03 15:07:53 +02:00
Clicking on an index nav item should always refresh the discussion list
This commit is contained in:
10
js/forum/src/components/index-nav-item.js
Normal file
10
js/forum/src/components/index-nav-item.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import NavItem from 'flarum/components/nav-item'
|
||||
|
||||
export default class IndexNavItem extends NavItem {
|
||||
static props(props) {
|
||||
props.onclick = props.onclick || function() {
|
||||
app.cache.discussionList = null;
|
||||
m.redraw.strategy('none');
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user