1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 14:37:49 +02:00

Don't destroy discussion list in case of a redraw

i.e. the one in index-page’s onunload → composer.minimize
This commit is contained in:
Toby Zerner
2015-06-19 14:34:52 +09:30
parent c75e4f5a74
commit 840bbfd995
2 changed files with 13 additions and 7 deletions

View File

@@ -3,7 +3,9 @@ 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;
if (app.cache.discussionList) {
app.cache.discussionList.forceReload = true;
}
m.redraw.strategy('none');
};
}