diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue
index 29df0c71..5f29adda 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Address.vue
@@ -63,10 +63,10 @@
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue
index 0beea097..15953f68 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/BookingEdit.vue
@@ -171,8 +171,7 @@
import ServiceSelect from './components/ServiceSelect'
import ServicesOverview from './components/ServicesOverview'
import TransportationSelect from './components/TransportationSelect'
-
- import authenticatedClient from './api'
+ import axios from 'axios'
import {mapGetters, mapMutations, mapState} from 'vuex'
Vue.use(VueScrollTo)
@@ -225,7 +224,7 @@
...mapMutations(['alert', 'beginLoading', 'endLoading']),
loadFormOptions () {
this.beginLoading();
- return authenticatedClient({
+ return axios({
url: '/api/countries',
}).then(response => {
this.countries = response.data
@@ -236,70 +235,65 @@
},
loadBookingData () {
this.beginLoading('Lade Reise- und Buchungsdaten...')
- return authenticatedClient.get(`/api/booking/${this.bookingId}`)
- .then(response => {
- this.bookingData = response.data.bookingData;
- this.participantData = response.data.participantData;
- this.travelData = response.data.travelData;
- })
- .catch(() => {
- throw new Error('Reise- und Buchungsdaten konnten nicht geladen werden.');
- })
- .finally(() => {
- this.endLoading()
- })
+ return axios({
+ url: `/api/booking/${this.bookingId}`
+ }).then(response => {
+ this.bookingData = response.data.bookingData;
+ this.participantData = response.data.participantData;
+ this.travelData = response.data.travelData;
+ }).catch(() => {
+ throw new Error('Reise- und Buchungsdaten konnten nicht geladen werden.');
+ }).finally(() => {
+ this.endLoading()
+ })
},
loadEventData () {
this.beginLoading('Lade Vorgangsdaten...')
- return authenticatedClient.get(`/api/event/${this.bookingData.bookingNumber}`)
- .then(response => {
- this.eventData = response.data;
- })
- .catch(error => {
- throw new Error(error.response.data.message);
- })
- .finally(() => {
- this.endLoading()
- })
+ return axios({
+ url: `/api/event/${this.bookingData.bookingNumber}`
+ }).then(response => {
+ this.eventData = response.data;
+ }).catch(error => {
+ throw new Error(error.response.data.message);
+ }).finally(() => {
+ this.endLoading()
+ })
},
loadMutableFields () {
this.beginLoading('Lade mögliche Änderungen...')
- return authenticatedClient.get(`/api/mutable-fields/${this.travelData.busproId}`)
- .then(response => {
- this.mutableFields = response.data;
- })
- .catch(() => {
- throw new Error('Mögliche Änderungen konnten nicht geladen werden.');
- })
- .finally(() => {
- this.endLoading()
- })
+ return axios({
+ url: `/api/mutable-fields/${this.travelData.busproId}`
+ }).then(response => {
+ this.mutableFields = response.data;
+ }).catch(() => {
+ throw new Error('Mögliche Änderungen konnten nicht geladen werden.');
+ }).finally(() => {
+ this.endLoading()
+ })
},
loadContingents () {
this.beginLoading('Lade Kontingente...')
- return authenticatedClient.get(`/api/contingents/${this.travelData.busproId}/${this.bookingData.partnerId}`)
- .then(response => {
- this.contingents = response.data;
- })
- .catch(() => {
- throw new Error('Kontingente konnten nicht geladen werden.');
- })
- .finally(() => {
- this.endLoading()
- })
+ return axios({
+ url: `/api/contingents/${this.travelData.busproId}`
+ }).then(response => {
+ this.contingents = response.data;
+ }).catch(() => {
+ throw new Error('Kontingente konnten nicht geladen werden.');
+ }).finally(() => {
+ this.endLoading()
+ })
},
loadServices () {
this.beginLoading('Lade Leistungen...')
- return authenticatedClient.get(`/api/services/${this.travelData.busproId}`)
- .then(response => {
- this.services = response.data;
- })
- .catch(() => {
- throw new Error('Leistungen konnten nicht geladen werden.');
- })
- .finally(() => {
- this.endLoading()
- })
+ return axios({
+ url: `/api/services/${this.travelData.busproId}`
+ }).then(response => {
+ this.services = response.data;
+ }).catch(() => {
+ throw new Error('Leistungen konnten nicht geladen werden.');
+ }).finally(() => {
+ this.endLoading()
+ })
},
getAccommodationLabel (participant) {
if (participant.hasOwnProperty('accommodationId') && participant.accommodationId in this.contingents) {
@@ -429,10 +423,14 @@
return;
}
this.beginLoading()
- authenticatedClient.put(`/api/booking/${this.bookingId}`, {
- participantData: this.participantData,
- selectedTransportations: this.selectedTransportations,
- remarks: this.bookingData.remarks
+ axios({
+ url: `/api/booking/${this.bookingId}`,
+ method: 'put',
+ data: {
+ participantData: this.participantData,
+ selectedTransportations: this.selectedTransportations,
+ remarks: this.bookingData.remarks,
+ },
}).then(response => {
this.alert({
message: response.data.message,
diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue
index 52479d16..6537cd8e 100644
--- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue
+++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/CrmData.vue
@@ -51,7 +51,7 @@