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,9 +80,8 @@ export default {
|
|||
'Authorization': 'Basic YXBpOmFwaQ==',
|
||||
'Content-Type': 'application/vnd.api+json'
|
||||
}
|
||||
})
|
||||
.then(({ data: { data } }) => {
|
||||
const title = data.attributes.title
|
||||
}).then(({ data: { data: { attributes } } }) => {
|
||||
const title = attributes.title
|
||||
this.messages.push(`Session ${title} has been created.`)
|
||||
|
||||
this.$emit('submitted', data)
|
||||
|
@ -92,8 +91,7 @@ export default {
|
|||
|
||||
this.errors = []
|
||||
this.messages = []
|
||||
})
|
||||
.catch(({ response: { data } }) => {
|
||||
}).catch(({ response: { data } }) => {
|
||||
this.errors = _(data.errors).map('detail').value()
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue