summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorNico <paetni1@gmail.com>2020-04-12 00:56:35 +0200
committerNico <paetni1@gmail.com>2020-04-12 00:56:35 +0200
commitedf52bc4382823ed8768251954371094a849213e (patch)
treecf84fa1216ac5001df2204790d299ad5b8f0d1f4 /config
parent8f28a409c7dd90319f785e3fc4c1b26803f67f31 (diff)
downloadwekan-edf52bc4382823ed8768251954371094a849213e.tar.gz
wekan-edf52bc4382823ed8768251954371094a849213e.tar.bz2
wekan-edf52bc4382823ed8768251954371094a849213e.zip
Public boards overview
Diffstat (limited to 'config')
-rw-r--r--config/router.js21
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) {