+
{{ trans('Fill balance') }}
{{ trans('Low balance') }} {{ trans('Click here') }}
@@ -80,7 +63,7 @@
-
+
{{ item }}
@@ -159,6 +142,7 @@
export default {
props: {
selectedItems: { type: Array, default: () => [] },
+ user: { type: Object, default: () => {} },
},
// components: {
@@ -174,11 +158,11 @@ export default {
visible: true,
type: "local",
form: this.$inertia.form({
- phone: undefined,
+ phone: this.user.username,
password: undefined,
- first_name: undefined,
- last_name: undefined,
- email: undefined,
+ first_name: this.user.name,
+ last_name: this.user.surname,
+ email: this.user.email,
org_type: undefined,
// captcha: undefined,
items: [
@@ -191,7 +175,7 @@ export default {
}),
validationErrorsObj: {},
loader: false,
- countryCode: '',
+ // countryCode: this.user.dial_code,
};
},
@@ -231,10 +215,10 @@ export default {
};
},
- onSelect({name, iso2, dialCode}) {
- console.log(name, iso2, dialCode);
- this.countryCode = dialCode
- },
+ // onSelect({name, iso2, dialCode}) {
+ // console.log(name, iso2, dialCode);
+ // this.countryCode = dialCode
+ // },
deleteDangerClass() {
let warningParagraphs = document.querySelectorAll('.warning-text')
@@ -253,7 +237,7 @@ export default {
this.form.totalPrice = this.totalPrice
this.form.currency = this.currency
- this.form.dial_code = this.countryCode
+ // this.form.dial_code = this.countryCode
fetch(this.route('requests.store'), {
method: 'POST',
diff --git a/resources/js/Pages/Imports.vue b/resources/js/Pages/Imports.vue
index 91b2f0d..cb81c1f 100644
--- a/resources/js/Pages/Imports.vue
+++ b/resources/js/Pages/Imports.vue
@@ -149,6 +149,7 @@
@@ -161,7 +162,7 @@ import InfiniteLoading from "vue-infinite-loading";
import CreateRequestModal from "@/Components/CreateRequestModal";
export default {
- props: ["imports", "countries", "units", "currencies", "filters", "groups"],
+ props: ["imports", "countries", "units", "currencies", "filters", "groups", "user"],
components: { ImportModal, CreateRequestModal, InfiniteLoading },