mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Duplicate Board now open board
This commit is contained in:
parent
90be8ff936
commit
9fa5b59d7c
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue