Disable status preview in the chat posting form
This commit is contained in:
parent
f05f832bff
commit
45901c8da6
|
@ -75,6 +75,7 @@
|
||||||
:disable-polls="true"
|
:disable-polls="true"
|
||||||
:disable-sensitivity-checkbox="true"
|
:disable-sensitivity-checkbox="true"
|
||||||
:disable-submit="errorLoadingChat || !currentChat"
|
:disable-submit="errorLoadingChat || !currentChat"
|
||||||
|
:disable-preview="true"
|
||||||
:post-handler="sendMessage"
|
:post-handler="sendMessage"
|
||||||
:submit-on-enter="!mobileLayout"
|
:submit-on-enter="!mobileLayout"
|
||||||
:preserve-focus="!mobileLayout"
|
:preserve-focus="!mobileLayout"
|
||||||
|
|
|
@ -41,6 +41,7 @@ const PostStatusForm = {
|
||||||
'disablePolls',
|
'disablePolls',
|
||||||
'disableSensitivityCheckbox',
|
'disableSensitivityCheckbox',
|
||||||
'disableSubmit',
|
'disableSubmit',
|
||||||
|
'disablePreview',
|
||||||
'placeholder',
|
'placeholder',
|
||||||
'maxHeight',
|
'maxHeight',
|
||||||
'postHandler',
|
'postHandler',
|
||||||
|
|
|
@ -70,7 +70,10 @@
|
||||||
<span v-if="safeDMEnabled">{{ $t('post_status.direct_warning_to_first_only') }}</span>
|
<span v-if="safeDMEnabled">{{ $t('post_status.direct_warning_to_first_only') }}</span>
|
||||||
<span v-else>{{ $t('post_status.direct_warning_to_all') }}</span>
|
<span v-else>{{ $t('post_status.direct_warning_to_all') }}</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="preview-heading faint">
|
<div
|
||||||
|
v-if="!disablePreview"
|
||||||
|
class="preview-heading faint"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
class="preview-toggle faint"
|
class="preview-toggle faint"
|
||||||
@click.stop.prevent="togglePreview"
|
@click.stop.prevent="togglePreview"
|
||||||
|
|
Loading…
Reference in New Issue