feat: replace our home-grown gantt implementation with ganttastic #2180
|
@ -185,11 +185,11 @@ async function updateTask(e) {
|
|||
task.startDate = e.bar.startDate
|
||||
task.endDate = e.bar.endDate
|
||||
const r = await taskService.value.update(task)
|
||||
konrad marked this conversation as resolved
Outdated
|
||||
for (const i in ganttBars.value) {
|
||||
ganttBars.value.forEach((el, i) => {
|
||||
if (ganttBars.value[i][0].ganttBarConfig.id === task.id) {
|
||||
ganttBars.value[i] = transformTaskToGanttBar(r)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const newTaskFieldActive = ref(false)
|
||||
konrad marked this conversation as resolved
Outdated
dpschen
commented
Add type: https://vuejs.org/guide/typescript/composition-api.html#typing-template-refs
|
||||
|
|
Reference in New Issue
Avoid
for ... in
, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#array_iteration_and_for...inDone.