1
0
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:
Toby Zerner
2015-05-18 15:27:39 +09:30
parent 10acb839cf
commit 8cba7ad3f2
4 changed files with 18 additions and 4 deletions

View 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');
};
}
}