chore: use Loading component

This commit is contained in:
kolaente 2022-08-02 13:45:03 +02:00
parent 09bdf76aa4
commit ede3dec1d6
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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"/>
<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'
const dateFormat = 'yyyy-LL-dd HH:mm'