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 ListItem(),
new Placeholder({ new Placeholder({
emptyNodeClass: 'is-empty', emptyNodeClass: 'is-empty',
emptyNodeText: 'Schreib etwas inspirerendes…' emptyNodeText: this.$t('editor.placeholder')
}), }),
new History(), new History(),
new Mention({ new Mention({

View File

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

View File

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

View File

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