summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-11-18 23:37:15 +0200
committerLauri Ojansivu <x@xet7.org>2017-11-18 23:37:15 +0200
commit22e43e659167f0a5a1e9d2c2d4c20996835bd28b (patch)
tree21fc2d536176ad54eba926eb937da091b6b115ae /config
parent13d8e75c05cf8ed90c4b5d8ee5aadad0f9444b8f (diff)
parentb4c3e02b75c2fc9eca3af668fdd8b27b9afaa279 (diff)
downloadwekan-22e43e659167f0a5a1e9d2c2d4c20996835bd28b.tar.gz
wekan-22e43e659167f0a5a1e9d2c2d4c20996835bd28b.tar.bz2
wekan-22e43e659167f0a5a1e9d2c2d4c20996835bd28b.zip
Merge branch 'devel' of https://github.com/thuanpq/wekan into thuanpq-devel
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 7f657820..c86a92ac 100644
--- a/config/router.js
+++ b/config/router.js
@@ -140,6 +140,26 @@ FlowRouter.route('/information', {
},
});
+FlowRouter.route('/people', {
+ name: 'people',
+ triggersEnter: [
+ AccountsTemplates.ensureSignedIn,
+ () => {
+ Session.set('currentBoard', null);
+ Session.set('currentCard', null);
+
+ Filter.reset();
+ EscapeActions.executeAll();
+ },
+ ],
+ action() {
+ BlazeLayout.render('defaultLayout', {
+ headerBar: 'settingHeaderBar',
+ content: 'people',
+ });
+ },
+});
+
FlowRouter.notFound = {
action() {
BlazeLayout.render('defaultLayout', { content: 'notFound' });