mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 06:49:35 +00:00
[Blockers] Added blockers in tasks view
This commit is contained in:
1 parent
6654c32da7
commit
f3f86261f4
1 file changed
+5
-3
@@ -85,9 +85,11 @@ export default {
|
|||||||
_generateTasks() {
|
_generateTasks() {
|
||||||
const tasks = []
|
const tasks = []
|
||||||
const calendarDate = moment(this.filter.start).format('DD-MM-YYYY')
|
const calendarDate = moment(this.filter.start).format('DD-MM-YYYY')
|
||||||
// const diffInDays = differenceInCalendarDays(date, new Date(timeblock.start))
|
|
||||||
|
|
||||||
this.subtasks.forEach(subtask => {
|
this.subtasks.forEach(subtask => {
|
||||||
|
// TODO Implement blockers
|
||||||
|
if (subtask.type == 'blocker') return
|
||||||
|
|
||||||
let split = null
|
let split = null
|
||||||
let employee = null
|
let employee = null
|
||||||
|
|
||||||
@@ -169,8 +171,8 @@ export default {
|
|||||||
const queryParameters = new URLSearchParams(urlQueryObject).toString()
|
const queryParameters = new URLSearchParams(urlQueryObject).toString()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { subtasks } = await this.$axios.get_auth(`v1/subtasks?${queryParameters}`)
|
const { subtasks, blockers } = await this.$axios.get_auth(`v1/subtasks?${queryParameters}`)
|
||||||
this.subtasks = subtasks
|
this.subtasks = [...subtasks, ...blockers.map(blocker => ({...blocker, type: 'blocker'}))]
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$toast.error('Nepodarilo sa nacitat data!')
|
this.$toast.error('Nepodarilo sa nacitat data!')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user