mirror of
https://github.com/flarum/core.git
synced 2025-07-18 23:31:17 +02:00
Merge pull request #1009
This commit is contained in:
@@ -236,7 +236,13 @@ export default class IndexPage extends Page {
|
|||||||
title: app.translator.trans('core.forum.index.refresh_tooltip'),
|
title: app.translator.trans('core.forum.index.refresh_tooltip'),
|
||||||
icon: 'refresh',
|
icon: 'refresh',
|
||||||
className: 'Button Button--icon',
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -62,6 +62,10 @@ export default function boot(app) {
|
|||||||
if (e.ctrlKey || e.metaKey || e.which === 2) return;
|
if (e.ctrlKey || e.metaKey || e.which === 2) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
app.history.home();
|
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
|
// Add a class to the body which indicates that the page has been scrolled
|
||||||
|
Reference in New Issue
Block a user