From 45901c8da654bbeaae71cc484ea08f39a332baa7 Mon Sep 17 00:00:00 2001 From: eugenijm Date: Mon, 6 Jul 2020 16:55:29 +0300 Subject: [PATCH] Disable status preview in the chat posting form --- src/components/chat/chat.vue | 1 + src/components/post_status_form/post_status_form.js | 1 + src/components/post_status_form/post_status_form.vue | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/chat/chat.vue b/src/components/chat/chat.vue index 62b72e14..2e4538c8 100644 --- a/src/components/chat/chat.vue +++ b/src/components/chat/chat.vue @@ -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" diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 59e4dc26..9e7cce0f 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -41,6 +41,7 @@ const PostStatusForm = { 'disablePolls', 'disableSensitivityCheckbox', 'disableSubmit', + 'disablePreview', 'placeholder', 'maxHeight', 'postHandler', diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 7454958b..3dcf1f79 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -70,7 +70,10 @@ {{ $t('post_status.direct_warning_to_first_only') }} {{ $t('post_status.direct_warning_to_all') }}

-
+