1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Merge pull request #735 from bogdanteodoru/master

#679 Ask for confirmation before "Mark all as Read"
This commit is contained in:
Toby Zerner
2016-01-12 17:09:26 +10:30

View File

@@ -358,6 +358,10 @@ export default class IndexPage extends Page {
* @return void
*/
markAllAsRead() {
app.session.user.save({readTime: new Date()});
const confirmation = confirm(app.translator.trans('core.forum.index.mark_all_as_read_confirmation'));
if (confirmation) {
app.session.user.save({readTime: new Date()});
}
}
}