1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 04:30:56 +02:00
Files
php-flarum/js/forum/src/components/index-nav-item.js
Toby Zerner 840bbfd995 Don't destroy discussion list in case of a redraw
i.e. the one in index-page’s onunload → composer.minimize
2015-06-19 14:34:52 +09:30

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