diff --git a/app/.env b/app/.env index 13b20ff..dd6a2f4 100644 --- a/app/.env +++ b/app/.env @@ -1,2 +1,2 @@ VUE_APP_WAXIOS_URL=https://taskmanager.internal.studiotem.com/api/ -VUE_APP_WAXIOS_URL=https://tm.jandl.sk/api/ +# VUE_APP_WAXIOS_URL=https://tm.jandl.sk/api/ diff --git a/app/src/plugins/tm@dashboard/_components/a-timeline-event.vue b/app/src/plugins/tm@dashboard/_components/a-timeline-event.vue index 786fac0..7410fe3 100644 --- a/app/src/plugins/tm@dashboard/_components/a-timeline-event.vue +++ b/app/src/plugins/tm@dashboard/_components/a-timeline-event.vue @@ -7,27 +7,27 @@ -
+
-
- {{ props.event.initials }} +
+ {{ props.event.initials }}
- {{ props.event.date?.toLocaleDateString('sk-SK') }} + {{ props.event.date?.toLocaleDateString('sk-SK') }}
@@ -97,6 +97,25 @@ const deadline: ComputedRef = computed(() => { const eventLength: ComputedRef = computed(() => props.event.end.getTime() - props.event.start.getTime()) +const eventColor: ComputedRef<{ color: string, backgroundColor: string }> = computed(() => { + if (props.event.type === 'office365_blocker') { + return { + color: '#ffffff', + backgroundColor: '#326cb8' + } + } else if (props.event._timeblock_is_finished || props.event.subtask?.is_finished) { + return { + color: '#000000', + backgroundColor: '#dedfe0' + } + } + + return { + color: '#000000', + backgroundColor: props.event.color || props.event.subtask?.color + } +}) + const subtaskCssClass: ComputedRef = computed(() => { const classes = [] if (eventLength.value <= 9000000) classes.push('short-event') @@ -112,6 +131,9 @@ const isOfficeEvent: ComputedRef = computed(() => {