mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
HcContributionForm submit is disabled by default
This commit is contained in:
parent
83c4a1c638
commit
cb356161e5
@ -92,7 +92,7 @@ export default {
|
||||
},
|
||||
id: null,
|
||||
loading: false,
|
||||
disabled: false,
|
||||
disabled: true,
|
||||
slug: null,
|
||||
users: [],
|
||||
}
|
||||
@ -169,6 +169,11 @@ export default {
|
||||
},
|
||||
updateEditorContent(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)
|
||||
},
|
||||
availableLocales() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user