mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-27 00:08:45 +00:00
HcContributionForm submit is disabled by default
This commit is contained in:
parent
e6e9b1b7d7
commit
f057205158
@ -98,7 +98,7 @@ export default {
|
|||||||
},
|
},
|
||||||
id: null,
|
id: null,
|
||||||
loading: false,
|
loading: false,
|
||||||
disabled: false,
|
disabled: true,
|
||||||
slug: null,
|
slug: null,
|
||||||
users: [],
|
users: [],
|
||||||
hashtags: [],
|
hashtags: [],
|
||||||
@ -176,6 +176,11 @@ export default {
|
|||||||
},
|
},
|
||||||
updateEditorContent(value) {
|
updateEditorContent(value) {
|
||||||
// this.form.content = value
|
// this.form.content = value
|
||||||
|
this.disabled = true
|
||||||
|
if (value.replace(/<p>|<\/p>|<h3>|<\/h3>|<h4>|<\/h4>/gm, '').length > 3) {
|
||||||
|
this.disabled = false
|
||||||
|
}
|
||||||
|
|
||||||
this.$refs.contributionForm.update('content', value)
|
this.$refs.contributionForm.update('content', value)
|
||||||
},
|
},
|
||||||
availableLocales() {
|
availableLocales() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user