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:
@@ -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 || ''
|
||||||
}, [
|
}, [
|
||||||
|
Reference in New Issue
Block a user