chore: use Loading component
This commit is contained in:
parent
09bdf76aa4
commit
ede3dec1d6
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="gantt-container loading-container" :class="{'is-loading': taskService.loading || taskCollectionService.loading}">
|
<Loading class="gantt-container" v-if="taskService.loading || taskCollectionService.loading"/>
|
||||||
|
<div class="gantt-container" v-else>
|
||||||
<g-gantt-chart
|
<g-gantt-chart
|
||||||
:chart-start="`${dateFrom} 00:00`"
|
:chart-start="`${dateFrom} 00:00`"
|
||||||
:chart-end="`${dateTo} 23:59`"
|
:chart-end="`${dateTo} 23:59`"
|
||||||
|
@ -62,6 +63,7 @@ import {useStore} from 'vuex'
|
||||||
import Rights from '../../models/constants/rights.json'
|
import Rights from '../../models/constants/rights.json'
|
||||||
import TaskModel from '@/models/task'
|
import TaskModel from '@/models/task'
|
||||||
import {useRouter} from 'vue-router'
|
import {useRouter} from 'vue-router'
|
||||||
|
import Loading from '@/components/misc/loading.vue'
|
||||||
|
|
||||||
const dateFormat = 'yyyy-LL-dd HH:mm'
|
const dateFormat = 'yyyy-LL-dd HH:mm'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue