1
0
mirror of https://github.com/flarum/core.git synced 2025-08-07 08:56:38 +02:00

Don't destroy discussion list in case of a redraw

This commit is contained in:
Toby Zerner
2015-06-19 14:35:01 +09:30
parent b2d2bfa34e
commit 82f487c4bb

View File

@@ -19,7 +19,12 @@ export default class TagNavItem extends NavItem {
m('a', { m('a', {
href: this.props.href, href: this.props.href,
config: m.route, config: m.route,
onclick: () => {app.cache.discussionList = null; m.redraw.strategy('none')}, onclick: () => {
if (app.cache.discussionList) {
app.cache.discussionList.forceReload = true;
}
m.redraw.strategy('none');
},
style: (active && tag) ? 'color: '+tag.color() : '', style: (active && tag) ? 'color: '+tag.color() : '',
title: description || '' title: description || ''
}, [ }, [