diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-12-08 16:18:44 -0500 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2016-01-31 20:03:12 +0100 |
commit | a13fad749e8a75025bb13de87f0170e1ea9e462d (patch) | |
tree | 81ef2f15cb540dfdd7efb81571e213d995f7b666 /config/router.js | |
parent | 67e7b6a139280cab1e1bccb94c684c56eb69985c (diff) | |
download | wekan-a13fad749e8a75025bb13de87f0170e1ea9e462d.tar.gz wekan-a13fad749e8a75025bb13de87f0170e1ea9e462d.tar.bz2 wekan-a13fad749e8a75025bb13de87f0170e1ea9e462d.zip |
Change the board import layout from a popup to a full page
This commit also removes the “import a single Trello card” as we couldn’t figure
out some reasonable use case.
We also create a new publication on the server to provide the minimal user
profile informations required to display an avatar.
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' }); |