Duplicate Board now open board

This commit is contained in:
Ben0it-T 2022-03-14 21:46:11 +01:00
parent 90be8ff936
commit 9fa5b59d7c

View file

@ -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);
}
},
);