1
0
mirror of https://github.com/flarum/core.git synced 2025-05-04 22:55:33 +02:00

#679 Ask for confirmation before "Mark all as Read"

This commit is contained in:
Bogdan Teodoru 2016-01-12 08:23:02 +02:00
parent 23eaee6b16
commit 5120d9577e

View File

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