mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Localise text, remove frontend validations
- validations are not working for the editor, they only work for our ds-input
This commit is contained in:
parent
0078b743fe
commit
546e2c99ad
@ -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({
|
||||
|
||||
@ -8,6 +8,9 @@
|
||||
"moreInfo": "Was ist Human Connection?",
|
||||
"hello": "Hallo"
|
||||
},
|
||||
"editor": {
|
||||
"placeholder": "Schreib etwas inspirerendes…"
|
||||
},
|
||||
"profile": {
|
||||
"name": "Mein Profil",
|
||||
"memberSince": "Mitglied seit",
|
||||
|
||||
@ -8,6 +8,9 @@
|
||||
"moreInfo": "What is Human Connection?",
|
||||
"hello": "Hello"
|
||||
},
|
||||
"editor": {
|
||||
"placeholder": "Leave your inspirational thoughts…"
|
||||
},
|
||||
"profile": {
|
||||
"name": "My Profile",
|
||||
"memberSince": "Member since",
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user