diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2016-02-01 17:53:34 +0100 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2016-02-01 17:53:34 +0100 |
commit | b490acf9fb7a57208ba619d5c8e078451e1297b4 (patch) | |
tree | 7d44b85dff8a1b47aca729b2cca42cd6d62941f8 /config/router.js | |
parent | 67e7b6a139280cab1e1bccb94c684c56eb69985c (diff) | |
parent | b5ebbd2bf95eef6fdc4f7a5fdaf5ef4e3b4ec5b5 (diff) | |
download | wekan-b490acf9fb7a57208ba619d5c8e078451e1297b4.tar.gz wekan-b490acf9fb7a57208ba619d5c8e078451e1297b4.tar.bz2 wekan-b490acf9fb7a57208ba619d5c8e078451e1297b4.zip |
Merge pull request #430 from wekan/full-screen-import
Full screen board import
Diffstat (limited to 'config/router.js')
-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' }); |