diff --git a/src/DbLocalizationProvider.AdminUI.AspNetCore/Areas/4D5A2189D188417485BF6C70546D34A1/Pages/AdminUI.cshtml b/src/DbLocalizationProvider.AdminUI.AspNetCore/Areas/4D5A2189D188417485BF6C70546D34A1/Pages/AdminUI.cshtml index fa9ed52..1b0db8b 100644 --- a/src/DbLocalizationProvider.AdminUI.AspNetCore/Areas/4D5A2189D188417485BF6C70546D34A1/Pages/AdminUI.cshtml +++ b/src/DbLocalizationProvider.AdminUI.AspNetCore/Areas/4D5A2189D188417485BF6C70546D34A1/Pages/AdminUI.cshtml @@ -867,7 +867,11 @@ addResource() { this.model.showAddModal = false; - axios.post('api/service/add', this.model.currentResource); + axios + .post('api/service/add', this.model.currentResource) + .catch(function(error) { + this.app.model.error = error.message; + }); this.loadData(); },