mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
fix calendara v teams
This commit is contained in:
1 parent
b16ff2e34f
commit
d2a19d3ef2
1 file changed
+11
-1
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div ref="page">
|
||||
<A-team-filter v-if="$store.getters['tm/isInitialized']" :split-days="calendarData ? splitDays : null" @filter-changed="onFilterChanged" />
|
||||
<Z-timeline v-if="calendarData" :cal-data="calendarData" :cal-config="calendarConfig" :splits="splitDays" />
|
||||
<Z-timeline v-if="calendarData && !hideCal" :cal-data="calendarData" :cal-config="calendarConfig" :splits="splitDays" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -23,6 +23,8 @@ export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
hideCal: false,
|
||||
|
||||
filter: null,
|
||||
subtasks: null,
|
||||
blockers: null,
|
||||
@@ -78,12 +80,20 @@ export default {
|
||||
const { subtasks, blockers } = await this.$axios.get_auth(`v1/subtasks?${queryParameters}`)
|
||||
this.subtasks = subtasks
|
||||
this.blockers = blockers
|
||||
this.hideCal = true
|
||||
setTimeout(() => { this.hideCal = false }, 0);
|
||||
} catch (error) {
|
||||
this.$toast.error('Nepodarilo sa nacitat data!')
|
||||
}
|
||||
|
||||
this._initScrollListener()
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
hideCal(newVal, oldVal) {
|
||||
console.log("toggle cal")
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user