mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-22 14:59:34 +00:00
.
This commit is contained in:
1 parent
8404567f9e
commit
b5133eadf0
2 files changed
+20
-11
No files matched your search
@@ -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