summaryrefslogtreecommitdiffstats
path: root/config/router.js
diff options
context:
space:
mode:
authorlkisme <lkisme@me.com>2017-02-26 21:11:15 +0800
committerlkisme <lkisme@me.com>2017-02-26 21:11:15 +0800
commit39f2837838ba30ec02bfe9f33c9fa0dfca05d1a6 (patch)
tree775e276109af00cb42ee81c8aaa03903b38764da /config/router.js
parente3c3cc0d8df14c84852a854383efa1b4bb83f218 (diff)
downloadwekan-39f2837838ba30ec02bfe9f33c9fa0dfca05d1a6.tar.gz
wekan-39f2837838ba30ec02bfe9f33c9fa0dfca05d1a6.tar.bz2
wekan-39f2837838ba30ec02bfe9f33c9fa0dfca05d1a6.zip
wording change, email sending optimization, add texts to i18n
Diffstat (limited to 'config/router.js')
-rw-r--r--config/router.js10
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',