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() { mounted() {
this.site = null;
this.description = null;
this.type = null;
this.tutors = [];
Vue.axios Vue.axios
.get("/api/site/all") .get("/api/site/all")
.then(response => { .then(response => {

View File

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