aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/chat/chat.vue1
-rw-r--r--src/components/post_status_form/post_status_form.js1
-rw-r--r--src/components/post_status_form/post_status_form.vue5
3 files changed, 6 insertions, 1 deletions
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 @@
<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"