diff options
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 99d5bff6..7194621b 100644 --- a/config/router.js +++ b/config/router.js @@ -79,6 +79,26 @@ FlowRouter.route('/shortcuts', { }, }); +FlowRouter.route('/import', { + name: 'import', + triggersEnter: [ + AccountsTemplates.ensureSignedIn, + () => { + Session.set('currentBoard', null); + Session.set('currentCard', null); + + Filter.reset(); + EscapeActions.executeAll(); + }, + ], + action() { + BlazeLayout.render('defaultLayout', { + headerBar: 'importHeaderBar', + content: 'import', + }); + }, +}); + FlowRouter.notFound = { action() { BlazeLayout.render('defaultLayout', { content: 'notFound' }); |