1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 16:05:05 +02:00

Clean up discussion list retaining mechanism

This commit is contained in:
Toby Zerner
2015-05-07 10:27:29 +09:30
parent 6b8dfdfb1c
commit 16c6bd4f23
5 changed files with 14 additions and 18 deletions

View File

@@ -36,6 +36,9 @@ export default class DiscussionPage extends Component {
app.store.find('discussions', m.route.param('id'), this.params()).then(this.setupDiscussion.bind(this));
if (app.cache.discussionList) {
if (!(app.current instanceof DiscussionPage)) {
app.cache.discussionList.subtrees.map(subtree => subtree.invalidate());
}
app.pane.enable();
app.pane.hide();
m.redraw.strategy('diff'); // otherwise pane redraws and mouseenter even is triggered so it doesn't hide