Move Vue into the vuejs directory
This commit is contained in:
parent
a4b018204d
commit
d7c864b63b
21 changed files with 13 additions and 15 deletions
vuejs
0
.gitignore → vuejs/.gitignore
vendored
0
.gitignore → vuejs/.gitignore
vendored
Before Width: 32px | Height: 32px | Size: 4.2 KiB After Width: 32px | Height: 32px | Size: 4.2 KiB |
Before ![]() (image error) Size: 6.7 KiB After ![]() (image error) Size: 6.7 KiB ![]() ![]() |
|
@ -80,22 +80,20 @@ export default {
|
|||
'Authorization': 'Basic YXBpOmFwaQ==',
|
||||
'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…
Add table
Add a link
Reference in a new issue