Fixed submitUrl property name

This commit is contained in:
Joel Collins 2019-11-20 16:57:40 +00:00
parent 605c132739
commit a202495692
3 changed files with 5 additions and 4 deletions

View file

@ -40,7 +40,7 @@ export default {
name: "TaskSubmitter",
props: {
submitURL: {
submitUrl: {
type: String,
required: true
},
@ -120,8 +120,9 @@ export default {
console.log("Task start clicked");
this.$emit("submit", this.submitData);
// Send a request to start a task
console.log("Submitting to ", this.submitUrl);
axios
.post(this.submitURL, this.submitData)
.post(this.submitUrl, this.submitData)
// Get the returned Task ID
.then(response => {
// Fetch the task ID