feat: replace our home-grown gantt implementation with ganttastic #2180

Merged
konrad merged 78 commits from feature/ganttastic into main 2022-10-27 16:03:27 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 6975a2b286 - Show all commits

View File

@ -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
Avoid `for ... in`, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#array_iteration_and_for...in

Done.

Done.
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
Add type: https://vuejs.org/guide/typescript/composition-api.html#typing-template-refs

Done.

Done.