mirror of
https://github.com/flarum/framework.git
synced 2025-01-23 00:50:44 +08:00
#679 Ask for confirmation before "Mark all as Read"
This commit is contained in:
parent
e52cf012b2
commit
6225a29e29
|
@ -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()});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user