diff --git a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js index 6ef7ccef8..39705baa0 100755 --- a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js +++ b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js @@ -101,6 +101,8 @@ export default { this.fileID? this.fileID[0]: null ).then((res) => { handleApiResponse(res); + }).catch((err) => { + console.error(err); }) : Vue.$fhcapi.ProfilUpdate.insertProfilRequest( this.topic, @@ -109,7 +111,9 @@ export default { ).then((res) => { handleApiResponse(res); - }); + }).catch((err) => { + console.error(err); + }) } }, diff --git a/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js b/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js index ed13eae03..f09aa8edd 100755 --- a/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js +++ b/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js @@ -61,8 +61,10 @@ export default { this.result = true; }).catch((e) => { Alert.popup(Vue.h('div',{innerHTML:e.response.data})); + }).finally(()=>{ + this.hide(); }); - this.hide(); + }, denyRequest: async function () { @@ -105,7 +107,7 @@ export default { }, template: ` - +