Merge pull request #1009

This commit is contained in:
Franz Liedke 2017-02-03 18:44:03 +01:00
commit 275c14ee7f
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4
2 changed files with 11 additions and 1 deletions

View File

@ -236,7 +236,13 @@ export default class IndexPage extends Page {
title: app.translator.trans('core.forum.index.refresh_tooltip'),
icon: 'refresh',
className: 'Button Button--icon',
onclick: () => app.cache.discussionList.refresh()
onclick: () => {
app.cache.discussionList.refresh();
if (app.session.user) {
app.store.find('users', app.session.user.id());
m.redraw();
}
}
})
);

View File

@ -62,6 +62,10 @@ export default function boot(app) {
if (e.ctrlKey || e.metaKey || e.which === 2) return;
e.preventDefault();
app.history.home();
if (app.session.user) {
app.store.find('users', app.session.user.id());
m.redraw();
}
});
// Add a class to the body which indicates that the page has been scrolled