diff --git a/frontend/src/Boards.vue b/frontend/src/Boards.vue index 3b4022c..338f64d 100644 --- a/frontend/src/Boards.vue +++ b/frontend/src/Boards.vue @@ -138,7 +138,7 @@ export default { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ name: this.boardName }), + body: JSON.stringify(requestBody), }); if (!response.ok) { @@ -154,7 +154,16 @@ export default { } }, goToApp(board) { + if (this.timeTracking) { + this.$router.push({ + name: 'Board-Time-Tracking', + params: { + userId: this.$route.params.userId, + boardId: board.timekeeping_board_id + }}); + } else { this.$router.push(`/groups/${this.$route.params.groupId}/boards/${board.board_id}`); + } }, }, } diff --git a/frontend/src/TimeTrackingBoard.vue b/frontend/src/TimeTrackingBoard.vue index e91fef6..e3ba2a9 100644 --- a/frontend/src/TimeTrackingBoard.vue +++ b/frontend/src/TimeTrackingBoard.vue @@ -24,12 +24,11 @@