This commit is contained in:
Cüneyt Şentürk 2021-07-28 18:38:56 +03:00
parent 1689c9139e
commit 90f7453659

View File

@ -4,22 +4,21 @@
* building robust, powerful web applications using Vue and Laravel.
*/
require('./../../bootstrap');
require('./../../bootstrap');
import Vue from 'vue';
import Vue from 'vue';
import DashboardPlugin from './../../plugins/dashboard-plugin';
import DashboardPlugin from './../../plugins/dashboard-plugin';
import Global from './../../mixins/global';
import Global from './../../mixins/global';
import Form from './../../plugins/form';
import Error from './../../plugins/error';
import BulkAction from './../../plugins/bulk-action';
import Form from './../../plugins/form';
import BulkAction from './../../plugins/bulk-action';
// plugin setup
Vue.use(DashboardPlugin);
// plugin setup
Vue.use(DashboardPlugin);
const app = new Vue({
const app = new Vue({
el: '#main-body',
mixins: [
@ -265,6 +264,7 @@
}
}
}, this);
this.currencyConversion();
},
@ -552,6 +552,7 @@
this.edit.currency++;
return;
}
if (!this.currencies.length) {
let currency_promise = Promise.resolve(window.axios.get((url + '/settings/currencies')));
@ -571,8 +572,10 @@
this.form.currency_code = currency.code;
this.form.currency_rate = currency.rate;
this.currencyConversion();
}
if (company_currency_code == currency.code) {
this.currency_symbol = currency;
}
@ -585,13 +588,14 @@
currencyConversion() {
setTimeout(() => {
if(document.querySelectorAll('.js-conversion-input')) {
if (document.querySelectorAll('.js-conversion-input')) {
let currency_input = document.querySelectorAll('.js-conversion-input');
for(let input of currency_input) {
input.setAttribute('size', input.value.length);
}
}
}, 250)
}, 250);
}
},
@ -690,5 +694,4 @@
}, this);
}
}
});
});