mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Don't destroy discussion list in case of a redraw
This commit is contained in:
parent
b2d2bfa34e
commit
82f487c4bb
|
@ -19,7 +19,12 @@ export default class TagNavItem extends NavItem {
|
|||
m('a', {
|
||||
href: this.props.href,
|
||||
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() : '',
|
||||
title: description || ''
|
||||
}, [
|
||||
|
|
Loading…
Reference in New Issue
Block a user