mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
[subTask] v-select employee, [refactor], [masterTaskDetail] formattedDates
This commit is contained in:
1 parent
e941534b5e
commit
0a842dcb32
41 files changed
+558
-965
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { Language, Options } from "../types"
|
||||
import { Ref, ref } from 'vue'
|
||||
import axios from 'axios'
|
||||
import { Language, Options } from "../types"
|
||||
import { Ref, ref } from 'vue'
|
||||
import axios from 'axios'
|
||||
import { createI18n, I18n as I18nType } from 'vue-i18n'
|
||||
import { Preferences } from '@capacitor/preferences'
|
||||
import { Preferences } from '@capacitor/preferences'
|
||||
|
||||
|
||||
export class I18n {
|
||||
@@ -25,7 +25,8 @@ export class I18n {
|
||||
missing: this._missingTranslation,
|
||||
postTranslation: this._postTranslation,
|
||||
})
|
||||
|
||||
|
||||
this.changeLanguage({title: "Slovenský", flag: "sk", value: "sk"})
|
||||
this.initCurrentLanguage()
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user