summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorGhassen Rjab <rjab.ghassen@gmail.com>2017-07-24 23:56:51 +0100
committerGhassen Rjab <rjab.ghassen@gmail.com>2017-07-24 23:56:51 +0100
commitd2b1a837e677b62e10a14c1599c4ff59ee21ff34 (patch)
treefae98d33bf797d84dc282fdf30fe1468cfb5dcd6 /config
parentf34ef01de90bbb1ed3fbbb1deac9cbe968848de8 (diff)
downloadwekan-d2b1a837e677b62e10a14c1599c4ff59ee21ff34.tar.gz
wekan-d2b1a837e677b62e10a14c1599c4ff59ee21ff34.tar.bz2
wekan-d2b1a837e677b62e10a14c1599c4ff59ee21ff34.zip
Import boards in Sandstorm
Diffstat (limited to 'config')
-rw-r--r--config/router.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/router.js b/config/router.js
index d4d13be5..ea85c7e6 100644
--- a/config/router.js
+++ b/config/router.js
@@ -84,6 +84,9 @@ FlowRouter.route('/import/:source', {
name: 'import',
triggersEnter: [AccountsTemplates.ensureSignedIn],
action(params) {
+ if (Session.get('currentBoard')) {
+ Session.set('fromBoard', Session.get('currentBoard'));
+ }
Session.set('currentBoard', null);
Session.set('currentCard', null);
Session.set('importSource', params.source);