Can now navigate to subtask

This commit is contained in:
Nicu Tofan 2018-06-24 10:44:09 +03:00
parent 4ac6a507cd
commit 989b026b33
No known key found for this signature in database
GPG key ID: 7EE66E95E64FD0B7
3 changed files with 15 additions and 0 deletions

View file

@ -88,6 +88,17 @@ BlazeComponent.extendComponent({
}
this.toggleDeleteDialog.set(!this.toggleDeleteDialog.get());
},
'click .js-view-subtask'(event) {
if($(event.target).hasClass('js-view-subtask')){
const subtask = this.currentData().subtask;
const board = subtask.board();
FlowRouter.go('card', {
boardId: board._id,
slug: board.slug,
cardId: subtask._id,
});
}
},
};
return [{