feat: replace our home-grown gantt implementation with ganttastic #2180
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div class="gantt-container loading-container" :class="{'is-loading': taskService.loading || taskCollectionService.loading}">
|
||||
<Loading class="gantt-container" v-if="taskService.loading || taskCollectionService.loading"/>
|
||||
konrad marked this conversation as resolved
Outdated
|
||||
<div class="gantt-container" v-else>
|
||||
<g-gantt-chart
|
||||
:chart-start="`${dateFrom} 00:00`"
|
||||
:chart-end="`${dateTo} 23:59`"
|
||||
|
@ -62,6 +63,7 @@ import {useStore} from 'vuex'
|
|||
import Rights from '../../models/constants/rights.json'
|
||||
import TaskModel from '@/models/task'
|
||||
import {useRouter} from 'vue-router'
|
||||
import Loading from '@/components/misc/loading.vue'
|
||||
konrad marked this conversation as resolved
Outdated
dpschen
commented
picky: use picky: use `DATE_FORMAT` to make clear it's a 'config const'
dpschen
commented
But also: shouldn't this depend on the user setting / language? But also: shouldn't this depend on the user setting / language?
konrad
commented
It's only used to pass the date in the correct format to the gantt chart libaray so it will always be the same. Not sure why they only take strings as input instead of > shouldn't this depend on the user setting / language?
It's only used to pass the date in the correct format to the gantt chart libaray so it will always be the same. Not sure why they only take strings as input instead of `Date` objects but that's how it is.
|
||||
|
||||
const dateFormat = 'yyyy-LL-dd HH:mm'
|
||||
|
||||
|
|
Reference in New Issue
Use loading component. This way it's easier for us to refactor the
is-loading
styles from bulma later.Done.