mirror of
https://github.com/flarum/core.git
synced 2025-07-29 04:30:56 +02:00
13 lines
321 B
JavaScript
13 lines
321 B
JavaScript
import NavItem from 'flarum/components/nav-item'
|
|
|
|
export default class IndexNavItem extends NavItem {
|
|
static props(props) {
|
|
props.onclick = props.onclick || function() {
|
|
if (app.cache.discussionList) {
|
|
app.cache.discussionList.forceReload = true;
|
|
}
|
|
m.redraw.strategy('none');
|
|
};
|
|
}
|
|
}
|