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 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>