Minor fixes.

This commit is contained in:
neviyn 2018-09-24 16:43:13 +01:00
parent 8fbd8c8117
commit 0a019feeba
2 changed files with 6 additions and 2 deletions

View File

@ -83,6 +83,10 @@ export default {
};
},
mounted() {
this.site = null;
this.description = null;
this.type = null;
this.tutors = [];
Vue.axios
.get("/api/site/all")
.then(response => {

View File

@ -57,7 +57,7 @@ export default {
if (form.checkValidity()) {
Vue.axios
.post("/api/tutor", {
sideId: this.siteSelection,
siteId: this.siteSelection,
name: this.tutorName
})
.then(response => {
@ -67,7 +67,7 @@ export default {
})
.catch(error => {
this.alertVariant = "danger";
this.alertText = "Failed to add Site";
this.alertText = "Failed to add Tutor";
this.showAlert();
console.log(error);
});