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