diff options
Diffstat (limited to 'config/router.js')
-rw-r--r-- | config/router.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/router.js b/config/router.js index f136f8cc..72592bd6 100644 --- a/config/router.js +++ b/config/router.js @@ -101,6 +101,16 @@ FlowRouter.route('/import', { FlowRouter.route('/setting', { name: 'setting', + triggersEnter: [ + AccountsTemplates.ensureSignedIn, + () => { + Session.set('currentBoard', null); + Session.set('currentCard', null); + + Filter.reset(); + EscapeActions.executeAll(); + }, + ], action() { BlazeLayout.render('defaultLayout', { headerBar: 'settingHeaderBar', |