Minor fixes.
This commit is contained in:
parent
8fbd8c8117
commit
0a019feeba
@ -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 => {
|
||||
|
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user