mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:52:25 +08:00
Refresh notifications with discussion list refresh
* When clicking "refresh" button for discussion list (on homepage) refresh notifications * When clicking forum title (on homepage) refresh notifications
This commit is contained in:
parent
08aaba6426
commit
a1a22aa4ce
@ -236,7 +236,11 @@ 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();
|
||||
app.store.find('users', app.session.user.id());
|
||||
m.redraw();
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
|
@ -61,6 +61,7 @@ export default function boot(app) {
|
||||
$('#home-link').click(e => {
|
||||
if (e.ctrlKey || e.metaKey || e.which === 2) return;
|
||||
e.preventDefault();
|
||||
app.store.find('users', app.session.user.id());
|
||||
app.history.home();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user