summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-08-03 14:56:36 +0300
committerLauri Ojansivu <x@xet7.org>2017-08-03 14:56:36 +0300
commit8ad704ca0a3517cbb4ba62bd4feb27f6de688d73 (patch)
tree96e14b95427dff64a439f67c9a3e3f7bf8b6980e /config
parentdca36b59a28b46fa185e03aa179d432485cf40fd (diff)
parente407eb9a8b91d1100315f2fcab2cf8d184957929 (diff)
downloadwekan-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.js20
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' });