aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/post_status_form/post_status_form.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 18661235..3d731ae4 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -176,12 +176,8 @@ const PostStatusForm = {
...mapGetters(['mergedConfig'])
},
watch: {
- 'newStatus.contentType': function (newType) {
- if (newType === 'text/plain') {
- this.closePreview()
- } else if (this.preview) {
- this.previewStatus(this.newStatus)
- }
+ 'newStatus.contentType': function () {
+ this.autoPreview()
},
'newStatus.spoilerText': function () {
this.autoPreview()