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 12 additions and 0 deletions
Showing only changes of commit d2c40926de - Show all commits

View File

@ -7,6 +7,7 @@
bar-end="endDate"
:grid="true"
@dragend-bar="updateTask"
@dblclick-bar="openTask"
>
<g-gantt-row
konrad marked this conversation as resolved Outdated

Is it possible to use here simply inherit as value?

Is it possible to use here simply `inherit` as value?

Seems to work, yes.

Seems to work, yes.

Not necessary with lates release. Removed.

Not necessary with lates release. Removed.
v-for="(bar, k) in ganttBars"
@ -46,10 +47,12 @@ import TaskService from '@/services/task'
import {useStore} from 'vuex'
import Rights from '../../models/constants/rights.json'
import TaskModel from '@/models/task'
import {useRouter} from 'vue-router'
const dateFormat = 'yyyy-LL-dd kk:mm'
const store = useStore()
const router = useRouter()
const props = defineProps({
listId: {
@ -180,6 +183,15 @@ async function createTask() {
newTaskTitle.value = ''
hideCreateNewTask()
}
function openTask(e) {
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.
console.log('open', e.bar.ganttBarConfig.id)
router.push({
name: 'task.detail',
params: { id: e.bar.ganttBarConfig.id },
state: { backdropView: router.currentRoute.value.fullPath },
})
}
</script>
konrad marked this conversation as resolved Outdated
Add type: https://vuejs.org/guide/typescript/composition-api.html#typing-template-refs

Done.

Done.
<style>