This commit is contained in:
Matej Glasnák committed 2023-02-15 16:02:04 +01:00
1 parent 8404567f9e
commit b5133eadf0
2 files changed
+20 -11

No files matched your search

+11 -2
View File
@@ -42,18 +42,27 @@ export default {
ZDeleteMasterTaskModal
},
data() {
return {
loader: null
}
},
async created() {
const loader = await this.$loading.show()
await this.$store.dispatch('tm/initialize')
loader?.hide()
this.loader?.hide()
},
mounted() {
this.loader = this.$loading.show()
this.$events.on('show-delete-team-modal', ({team}) => {
this.$refs['z-delete-team-modal'].showModal(team)
})
this.$events.on('show-team-modal', ({team}) => {
console.log('show team modal')
this.$refs['z-team-modal'].showModal(team)
})
@@ -33,22 +33,22 @@ export default {
methods: {
async _startLoading() {
this.loader = await this.$loading.show()
// this.loader = await this.$loading.show()
},
_stopLoading() {
this.loader?.hide()
// this.loader?.hide()
}
},
watch: {
content(value) {
if (value) {
this._stopLoading()
}
else
this._startLoading()
}
// content(value) {
// if (value) {
// this._stopLoading()
// }
// else
// this._startLoading()
// }
}
}
</script>