[subTask] v-select employee, [refactor], [masterTaskDetail] formattedDates

This commit is contained in:
romankko2 committed 2023-01-20 11:19:58 +01:00
1 parent e941534b5e
commit 0a842dcb32
41 files changed
+558 -965

No files matched your search

@@ -26,22 +26,30 @@ export default {
}
},
created() {
this.startLoading()
async created() {
await this._startLoading()
},
methods: {
async startLoading() {
if (!this.content)
this.loader = await this.$loading.show()
async _startLoading() {
this.loader = await this.$loading.show()
},
_stopLoading() {
this.loader.hide()
}
},
watch: {
content(newValue) {
if (newValue)
this.loader.hide()
content(value) {
console.log(`XX: ${value}`)
if (value) {
this._stopLoading()
console.log(' STOP LOADING')
}
else
this._startLoading()
}
}
}