diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue index 1cdfecd3..fbe5e810 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Assets/js/myep/Teamer.vue @@ -121,20 +121,24 @@ this.beginLoading(); - return authenticatedClient.put('/api/teamer-data', data) - .then(() => { - this.alert({ - message: 'Die Änderungen wurden gespeichert', - class: 'alert-success' - }); - }).catch(error => { - this.alert({ - message: 'Es ist ein Fehler aufgetreten :(', - class: 'alert-danger' - }); - }).finally(() => { - this.endLoading(); + return axios({ + url: '/api/teamer-data', + method: 'put', + data + }) + .then(() => { + this.alert({ + message: 'Die Änderungen wurden gespeichert', + class: 'alert-success' }); + }).catch(error => { + this.alert({ + message: 'Es ist ein Fehler aufgetreten :(', + class: 'alert-danger' + }); + }).finally(() => { + this.endLoading(); + }); } }, created () {