Move Vue into the vuejs directory
This commit is contained in:
parent
a4b018204d
commit
d7c864b63b
0
.gitignore → vuejs/.gitignore
vendored
0
.gitignore → vuejs/.gitignore
vendored
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
@ -80,22 +80,20 @@ export default {
|
||||||
'Authorization': 'Basic YXBpOmFwaQ==',
|
'Authorization': 'Basic YXBpOmFwaQ==',
|
||||||
'Content-Type': 'application/vnd.api+json'
|
'Content-Type': 'application/vnd.api+json'
|
||||||
}
|
}
|
||||||
|
}).then(({ data: { data: { attributes } } }) => {
|
||||||
|
const title = attributes.title
|
||||||
|
this.messages.push(`Session ${title} has been created.`)
|
||||||
|
|
||||||
|
this.$emit('submitted', data)
|
||||||
|
|
||||||
|
this.form.body = ''
|
||||||
|
this.form.title = ''
|
||||||
|
|
||||||
|
this.errors = []
|
||||||
|
this.messages = []
|
||||||
|
}).catch(({ response: { data } }) => {
|
||||||
|
this.errors = _(data.errors).map('detail').value()
|
||||||
})
|
})
|
||||||
.then(({ data: { data } }) => {
|
|
||||||
const title = data.attributes.title
|
|
||||||
this.messages.push(`Session ${title} has been created.`)
|
|
||||||
|
|
||||||
this.$emit('submitted', data)
|
|
||||||
|
|
||||||
this.form.body = ''
|
|
||||||
this.form.title = ''
|
|
||||||
|
|
||||||
this.errors = []
|
|
||||||
this.messages = []
|
|
||||||
})
|
|
||||||
.catch(({ response: { data } }) => {
|
|
||||||
this.errors = _(data.errors).map('detail').value()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue