mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +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 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({
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user