diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-12 16:58:08 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-04-12 16:58:08 +0300 |
commit | 544bc1d6ad3fdfa75ab965d8fd382433c0e40324 (patch) | |
tree | a0bfc9466a189652bc266d74464b0b59f1e4912b /config/router.js | |
parent | 89d25f52fa5a4c807657e2bf68c910b1d581b65f (diff) | |
parent | edf52bc4382823ed8768251954371094a849213e (diff) | |
download | wekan-544bc1d6ad3fdfa75ab965d8fd382433c0e40324.tar.gz wekan-544bc1d6ad3fdfa75ab965d8fd382433c0e40324.tar.bz2 wekan-544bc1d6ad3fdfa75ab965d8fd382433c0e40324.zip |
Merge branch 'master' of https://github.com/NicoP-S/wekan
Diffstat (limited to 'config/router.js')
-rw-r--r-- | config/router.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/config/router.js b/config/router.js index ad76035b..2e66c67f 100644 --- a/config/router.js +++ b/config/router.js @@ -26,6 +26,27 @@ FlowRouter.route('/', { }, }); +FlowRouter.route('/public', { + name: 'public', + triggersEnter: [AccountsTemplates.ensureSignedIn], + action() { + Session.set('currentBoard', null); + Session.set('currentList', null); + Session.set('currentCard', null); + + Filter.reset(); + EscapeActions.executeAll(); + + Utils.manageCustomUI(); + Utils.manageMatomo(); + + BlazeLayout.render('defaultLayout', { + headerBar: 'boardListHeaderBar', + content: 'boardList', + }); + }, +}); + FlowRouter.route('/b/:id/:slug', { name: 'board', action(params) { |