akaunting 3.0 (the last dance)
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
formClasses
|
||||
]"
|
||||
:footer-error="formError"
|
||||
:prependIcon="icon"
|
||||
:appendIcon="icon"
|
||||
:readonly="readonly"
|
||||
:disabled="disabled"
|
||||
@focus="focus"
|
||||
@ -19,7 +19,7 @@
|
||||
@on-open="focus"
|
||||
@on-close="blur"
|
||||
:config="dateConfig"
|
||||
class="form-control datepicker"
|
||||
class="form-element datepicker"
|
||||
v-model="real_model"
|
||||
@input="change"
|
||||
:readonly="readonly"
|
||||
@ -135,6 +135,7 @@ export default {
|
||||
if (this.locale !== 'en') {
|
||||
try {
|
||||
const lang = require(`flatpickr/dist/l10n/${this.locale}.js`).default[this.locale];
|
||||
|
||||
this.dateConfig.locale = lang;
|
||||
}
|
||||
catch (e) {
|
||||
@ -148,6 +149,7 @@ export default {
|
||||
if (this.model) {
|
||||
this.real_model = this.model;
|
||||
}
|
||||
|
||||
this.$emit('interface', this.real_model);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user