|
@@ -675,12 +675,19 @@ BlazeComponent.extendComponent({
|
|
element.type = 'swimlane';
|
|
element.type = 'swimlane';
|
|
_id = element.copy(this.boardId);
|
|
_id = element.copy(this.boardId);
|
|
} else if (this.isBoardTemplateSearch) {
|
|
} else if (this.isBoardTemplateSearch) {
|
|
- board = Boards.findOne(element.linkedId);
|
|
|
|
- board.sort = Boards.find({ archived: false }).count();
|
|
|
|
- board.type = 'board';
|
|
|
|
- board.title = element.title;
|
|
|
|
- delete board.slug;
|
|
|
|
- _id = board.copy();
|
|
|
|
|
|
+ Meteor.call(
|
|
|
|
+ 'copyBoard',
|
|
|
|
+ element.linkedId,
|
|
|
|
+ {
|
|
|
|
+ sort: Boards.find({ archived: false }).count(),
|
|
|
|
+ type: 'board',
|
|
|
|
+ title: element.title,
|
|
|
|
+ },
|
|
|
|
+ (err, data) => {
|
|
|
|
+ _id = data;
|
|
|
|
+ },
|
|
|
|
+ );
|
|
|
|
+ // _id = board.copy();
|
|
}
|
|
}
|
|
Popup.close();
|
|
Popup.close();
|
|
},
|
|
},
|