Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
added error display if add resource failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Valdis Iljuconoks committed Aug 7, 2024
1 parent 5f8d95f commit 558a411
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
},
Expand Down

0 comments on commit 558a411

Please sign in to comment.