Duplicate Board now open board

pull/4413/head
Ben0it-T 3 years ago
parent 90be8ff936
commit 9fa5b59d7c
  1. 7
      client/components/boards/boardsList.js

@ -228,6 +228,7 @@ BlazeComponent.extendComponent({
evt.preventDefault();
},
'click .js-clone-board'(evt) {
let title = getSlug(Boards.findOne(this.currentData()._id).title) || 'cloned-board';
Meteor.call(
'copyBoard',
this.currentData()._id,
@ -242,7 +243,11 @@ BlazeComponent.extendComponent({
} else {
Session.set('fromBoard', null);
subManager.subscribe('board', res, false);
Utils.goBoardId(res);
FlowRouter.go('board', {
id: res,
slug: title,
});
//Utils.goBoardId(res);
}
},
);

Loading…
Cancel
Save