From 6cb8d7a3f568d0b8b4e07e3951f2fbd249e77c66 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Fri, 30 Sep 2022 19:17:36 +0200 Subject: [PATCH] fix imports --- src/components/tasks/gantt-chart.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tasks/gantt-chart.vue b/src/components/tasks/gantt-chart.vue index 71651bb3..ba32bcbf 100644 --- a/src/components/tasks/gantt-chart.vue +++ b/src/components/tasks/gantt-chart.vue @@ -40,8 +40,8 @@ import TaskCollectionService from '@/services/taskCollection' import TaskService from '@/services/task' import {format, parse} from 'date-fns' import {colorIsDark} from '@/helpers/color/colorIsDark' -import {useStore} from 'vuex' -import Rights from '@/models/constants/rights.json' +import {useStore} from '@/store' +import {RIGHTS} from '@/constants/rights' import TaskModel from '@/models/task' import {useRouter} from 'vue-router' import Loading from '@/components/misc/loading.vue' @@ -125,7 +125,7 @@ const ganttChartWidth = computed(() => { return dateDiff * DAY_WIDTH_PIXELS }) -const canWrite = computed(() => store.state.currentList.maxRight > Rights.READ) +const canWrite = computed(() => store.state.currentList.maxRight > RIGHTS.READ) const tasks = ref>(new Map()) const ganttBars = ref([])