Merge branch '260-add-comment-form' of github.com:Human-Connection/Human-Connection into 260-add-comment-form

This commit is contained in:
Matt Rider 2019-04-24 12:30:49 -03:00
commit d72b2ed271
3 changed files with 10 additions and 4 deletions

View File

@ -114,6 +114,10 @@
}, },
"takeAction": { "takeAction": {
"name": "Aktiv werden" "name": "Aktiv werden"
},
"comment": {
"submit": "Commentar Senden",
"submitted": "Commentar Gesendet"
} }
}, },
"quotes": { "quotes": {

View File

@ -115,8 +115,10 @@
"takeAction": { "takeAction": {
"name": "Take action" "name": "Take action"
}, },
"submitComment": "Submit Comment", "comment": {
"commentSubmitted": "Comment Submitted" "submit": "Submit Comment",
"submitted": "Comment Submitted"
}
}, },
"quotes": { "quotes": {
"african": { "african": {

View File

@ -144,7 +144,7 @@
:disabled="disabled || errors" :disabled="disabled || errors"
primary primary
> >
{{ $t('post.submitComment') }} {{ $t('post.comment.submit') }}
</ds-button> </ds-button>
</ds-flex-item> </ds-flex-item>
</ds-flex> </ds-flex>
@ -368,7 +368,7 @@ export default {
this.addComment(res.data.CreateComment) this.addComment(res.data.CreateComment)
this.loading = false this.loading = false
this.disabled = false this.disabled = false
this.$toast.success(this.$t('post.commentSubmitted')) this.$toast.success(this.$t('post.comment.submitted'))
}) })
.catch(err => { .catch(err => {
this.$toast.error(err.message) this.$toast.error(err.message)