mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
commentar delete
This commit is contained in:
parent
0666dba321
commit
6e5b277afa
@ -46,18 +46,14 @@
|
||||
:disabled="loading"
|
||||
ghost
|
||||
@click.prevent="$router.back()"
|
||||
>
|
||||
{{ $t('actions.cancel') }}
|
||||
</ds-button>
|
||||
>{{ $t('actions.cancel') }}</ds-button>
|
||||
<ds-button
|
||||
type="submit"
|
||||
icon="check"
|
||||
:loading="loading"
|
||||
:disabled="disabled || errors"
|
||||
primary
|
||||
>
|
||||
{{ $t('actions.save') }}
|
||||
</ds-button>
|
||||
>{{ $t('actions.save') }}</ds-button>
|
||||
</div>
|
||||
<ds-space margin-bottom="large" />
|
||||
</ds-card>
|
||||
@ -180,13 +176,10 @@ export default {
|
||||
},
|
||||
updateEditorContent(value) {
|
||||
var n = 0
|
||||
// this.form.content = value
|
||||
this.$refs.contributionForm.update('content', value)
|
||||
|
||||
this.disabled = true
|
||||
n = value.replace(/<\/?[^>]+(>|$)/gm, '').length
|
||||
this.form.contentLength = n
|
||||
|
||||
if (n > this.formSchema.content.min && this.formSchema.content.max > n) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user