diff --git a/resources/assets/vue/components/bookings/forms/SupplierPlaceOrderFormComponent.vue b/resources/assets/vue/components/bookings/forms/SupplierPlaceOrderFormComponent.vue
index 2607388b..d4ae9ed3 100644
--- a/resources/assets/vue/components/bookings/forms/SupplierPlaceOrderFormComponent.vue
+++ b/resources/assets/vue/components/bookings/forms/SupplierPlaceOrderFormComponent.vue
@@ -47,7 +47,7 @@
-
+
@@ -100,6 +100,7 @@
},
data(){
return {
+ isCreating: false,
parameters: {
rate: 0
}
@@ -130,7 +131,7 @@
},
methods: {
submitForm(){
-
+ this.isCreating = true;
this.parameters = {
payments: this.payments,
rate: this.parameters.rate
@@ -144,6 +145,7 @@
payments: [],
rate: 0
};
+ this.isCreating = false;
},
generateMockWhiteForm() {
let paymentIds = this.payments.map(function(payment) {
@@ -168,8 +170,34 @@
else{
window.open(url, '_blank');
}
- }
+ },
+ errorHandler(error) {
+ this.isCreating = false;
+ },
},
mixins: [FormHandler]
}
+