diff options
author | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-24 10:44:09 +0300 |
---|---|---|
committer | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-26 14:32:50 +0300 |
commit | 989b026b33508feaa6ba806a624b95a93298327c (patch) | |
tree | 8227d83eb29a33ae7a05b21937fc18317594d1f2 /client/components/cards/subtasks.js | |
parent | 4ac6a507cdd3e7a4610c8961e0a9f76f945a5e6d (diff) | |
download | wekan-989b026b33508feaa6ba806a624b95a93298327c.tar.gz wekan-989b026b33508feaa6ba806a624b95a93298327c.tar.bz2 wekan-989b026b33508feaa6ba806a624b95a93298327c.zip |
Can now navigate to subtask
Diffstat (limited to 'client/components/cards/subtasks.js')
-rw-r--r-- | client/components/cards/subtasks.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/components/cards/subtasks.js b/client/components/cards/subtasks.js index 9a6666a3..087824f7 100644 --- a/client/components/cards/subtasks.js +++ b/client/components/cards/subtasks.js @@ -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 [{ |