diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-08-03 14:56:36 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-08-03 14:56:36 +0300 |
commit | 8ad704ca0a3517cbb4ba62bd4feb27f6de688d73 (patch) | |
tree | 96e14b95427dff64a439f67c9a3e3f7bf8b6980e /config | |
parent | dca36b59a28b46fa185e03aa179d432485cf40fd (diff) | |
parent | e407eb9a8b91d1100315f2fcab2cf8d184957929 (diff) | |
download | wekan-8ad704ca0a3517cbb4ba62bd4feb27f6de688d73.tar.gz wekan-8ad704ca0a3517cbb4ba62bd4feb27f6de688d73.tar.bz2 wekan-8ad704ca0a3517cbb4ba62bd4feb27f6de688d73.zip |
Merge branch 'improve-info' of https://github.com/nztqa/wekan into nztqa-improve-info
Diffstat (limited to 'config')
-rw-r--r-- | config/router.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config/router.js b/config/router.js index ea85c7e6..7f657820 100644 --- a/config/router.js +++ b/config/router.js @@ -120,6 +120,26 @@ FlowRouter.route('/setting', { }, }); +FlowRouter.route('/information', { + name: 'information', + triggersEnter: [ + AccountsTemplates.ensureSignedIn, + () => { + Session.set('currentBoard', null); + Session.set('currentCard', null); + + Filter.reset(); + EscapeActions.executeAll(); + }, + ], + action() { + BlazeLayout.render('defaultLayout', { + headerBar: 'settingHeaderBar', + content: 'information', + }); + }, +}); + FlowRouter.notFound = { action() { BlazeLayout.render('defaultLayout', { content: 'notFound' }); |