mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
.
This commit is contained in:
1 parent
8404567f9e
commit
b5133eadf0
2 files changed
+26
-17
No files matched your search
@@ -5,13 +5,13 @@
|
|||||||
</v-main>
|
</v-main>
|
||||||
</v-app>
|
</v-app>
|
||||||
|
|
||||||
<Z-team-modal ref="z-team-modal" @update="onTeamUpdate" />
|
<Z-team-modal ref="z-team-modal" @update="onTeamUpdate" />
|
||||||
<Z-delete-team-modal ref="z-delete-team-modal" @update="onTeamUpdate" />
|
<Z-delete-team-modal ref="z-delete-team-modal" @update="onTeamUpdate" />
|
||||||
|
|
||||||
<Z-task-modal ref="z-task-modal" @on-task-edited="onTaskEdited" />
|
<Z-task-modal ref="z-task-modal" @on-task-edited="onTaskEdited" />
|
||||||
<Z-delete-task-modal ref="z-delete-task-modal" @on-task-deleted="onTaskDeleted" />
|
<Z-delete-task-modal ref="z-delete-task-modal" @on-task-deleted="onTaskDeleted" />
|
||||||
<Z-delete-master-task-modal ref="z-delete-master-task-modal" @on-master-task-deleted="onMasterTaskDeleted" />
|
<Z-delete-master-task-modal ref="z-delete-master-task-modal" @on-master-task-deleted="onMasterTaskDeleted" />
|
||||||
<Z-complete-task-modal ref="z-complete-task-modal" @task-completed="onTaskCompleted" />
|
<Z-complete-task-modal ref="z-complete-task-modal" @task-completed="onTaskCompleted" />
|
||||||
<Z-task-add-time-modal ref="z-task-add-time-modal" />
|
<Z-task-add-time-modal ref="z-task-add-time-modal" />
|
||||||
<Z-blocker-modal ref="z-blocker-modal" />
|
<Z-blocker-modal ref="z-blocker-modal" />
|
||||||
|
|
||||||
@@ -42,18 +42,27 @@ export default {
|
|||||||
ZDeleteMasterTaskModal
|
ZDeleteMasterTaskModal
|
||||||
},
|
},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loader: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
async created() {
|
async created() {
|
||||||
const loader = await this.$loading.show()
|
|
||||||
await this.$store.dispatch('tm/initialize')
|
await this.$store.dispatch('tm/initialize')
|
||||||
loader?.hide()
|
this.loader?.hide()
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.loader = this.$loading.show()
|
||||||
|
|
||||||
this.$events.on('show-delete-team-modal', ({team}) => {
|
this.$events.on('show-delete-team-modal', ({team}) => {
|
||||||
this.$refs['z-delete-team-modal'].showModal(team)
|
this.$refs['z-delete-team-modal'].showModal(team)
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$events.on('show-team-modal', ({team}) => {
|
this.$events.on('show-team-modal', ({team}) => {
|
||||||
|
console.log('show team modal')
|
||||||
this.$refs['z-team-modal'].showModal(team)
|
this.$refs['z-team-modal'].showModal(team)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -33,22 +33,22 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
async _startLoading() {
|
async _startLoading() {
|
||||||
this.loader = await this.$loading.show()
|
// this.loader = await this.$loading.show()
|
||||||
},
|
},
|
||||||
|
|
||||||
_stopLoading() {
|
_stopLoading() {
|
||||||
this.loader?.hide()
|
// this.loader?.hide()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
content(value) {
|
// content(value) {
|
||||||
if (value) {
|
// if (value) {
|
||||||
this._stopLoading()
|
// this._stopLoading()
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
this._startLoading()
|
// this._startLoading()
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in new issue
Block a user