mirror of
https://github.com/flarum/framework.git
synced 2025-02-26 11:07:40 +08:00
Merge pull request #735 from bogdanteodoru/master
#679 Ask for confirmation before "Mark all as Read"
This commit is contained in:
commit
98ea4d1e71
@ -358,6 +358,10 @@ export default class IndexPage extends Page {
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
markAllAsRead() {
|
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()});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user