diff --git a/resources/assets/vue/components/bookings/forms/BookingFormComponent.vue b/resources/assets/vue/components/bookings/forms/BookingFormComponent.vue index 4ce30e7d..d9c009b5 100644 --- a/resources/assets/vue/components/bookings/forms/BookingFormComponent.vue +++ b/resources/assets/vue/components/bookings/forms/BookingFormComponent.vue @@ -128,7 +128,7 @@
- +
diff --git a/resources/assets/vue/components/bookings/forms/CurrencyConverterComponent.vue b/resources/assets/vue/components/bookings/forms/CurrencyConverterComponent.vue index df7c5f2e..873a5f41 100644 --- a/resources/assets/vue/components/bookings/forms/CurrencyConverterComponent.vue +++ b/resources/assets/vue/components/bookings/forms/CurrencyConverterComponent.vue @@ -111,7 +111,7 @@
- +
@@ -178,6 +178,10 @@ required: true, type: Object }, + companySegment: { + required: true, + type: Array + }, id: { required: true, type: Number @@ -211,6 +215,20 @@ created(){ this.serviceType = this.data; }, + computed: { + currentSegmentNames(){ + return this.companySegment.map(function (value){ + return value.name; + }) + }, + disabledMyr(){ + if (!this.currentSegmentNames.includes('Enable MYR Exchange')) { + return true; + } + + return false; + }, + }, watch: { data: { handler: function (val) {