1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 23:45:21 +01:00

Disable status preview in the chat posting form

This commit is contained in:
eugenijm 2020-07-06 16:55:29 +03:00
parent f05f832bff
commit 45901c8da6
3 changed files with 6 additions and 1 deletions

View File

@ -75,6 +75,7 @@
:disable-polls="true"
:disable-sensitivity-checkbox="true"
:disable-submit="errorLoadingChat || !currentChat"
:disable-preview="true"
:post-handler="sendMessage"
:submit-on-enter="!mobileLayout"
:preserve-focus="!mobileLayout"

View File

@ -41,6 +41,7 @@ const PostStatusForm = {
'disablePolls',
'disableSensitivityCheckbox',
'disableSubmit',
'disablePreview',
'placeholder',
'maxHeight',
'postHandler',

View File

@ -70,7 +70,10 @@
<span v-if="safeDMEnabled">{{ $t('post_status.direct_warning_to_first_only') }}</span>
<span v-else>{{ $t('post_status.direct_warning_to_all') }}</span>
</p>
<div class="preview-heading faint">
<div
v-if="!disablePreview"
class="preview-heading faint"
>
<a
class="preview-toggle faint"
@click.stop.prevent="togglePreview"