Localise text, remove frontend validations

- validations are not working for the editor, they only work for our ds-input
This commit is contained in:
Matt Rider 2019-04-24 09:15:41 -03:00
parent 0078b743fe
commit 546e2c99ad
4 changed files with 7 additions and 6 deletions

View File

@ -224,7 +224,7 @@ export default {
new ListItem(),
new Placeholder({
emptyNodeClass: 'is-empty',
emptyNodeText: 'Schreib etwas inspirerendes…'
emptyNodeText: this.$t('editor.placeholder')
}),
new History(),
new Mention({

View File

@ -8,6 +8,9 @@
"moreInfo": "Was ist Human Connection?",
"hello": "Hallo"
},
"editor": {
"placeholder": "Schreib etwas inspirerendes…"
},
"profile": {
"name": "Mein Profil",
"memberSince": "Mitglied seit",

View File

@ -8,6 +8,9 @@
"moreInfo": "What is Human Connection?",
"hello": "Hello"
},
"editor": {
"placeholder": "Leave your inspirational thoughts…"
},
"profile": {
"name": "My Profile",
"memberSince": "Member since",

View File

@ -115,7 +115,6 @@
<ds-form
ref="commentForm"
v-model="form"
:schema="formSchema"
@submit="handleSubmit"
>
<template slot-scope="{ errors }">
@ -217,9 +216,6 @@ export default {
disabled: false,
form: {
content: ''
},
formSchema: {
content: { required: true, min: 3 }
}
}
},
@ -349,7 +345,6 @@ export default {
},
addComment(comment) {
this.$apollo.queries.CommentByPost.refetch()
// this.post = { ...this.post, comments: [...this.post.comments, comment] }
},
handleSubmit() {
const content = this.form.content