From 6225a29e293ddb9bca01533b4a1a068e2e986151 Mon Sep 17 00:00:00 2001 From: Bogdan Teodoru Date: Tue, 12 Jan 2016 08:23:02 +0200 Subject: [PATCH] #679 Ask for confirmation before "Mark all as Read" --- framework/core/js/forum/src/components/IndexPage.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/IndexPage.js b/framework/core/js/forum/src/components/IndexPage.js index 5848520f0..d85867b94 100644 --- a/framework/core/js/forum/src/components/IndexPage.js +++ b/framework/core/js/forum/src/components/IndexPage.js @@ -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()}); + } } }