From d2b1a837e677b62e10a14c1599c4ff59ee21ff34 Mon Sep 17 00:00:00 2001 From: Ghassen Rjab Date: Mon, 24 Jul 2017 23:56:51 +0100 Subject: Import boards in Sandstorm --- config/router.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') 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); -- cgit v1.2.3-1-g7c22