From 7bdc3d6ce9c7e1d3831ee3e95fcc352ccc670ae8 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Mon, 6 Jul 2020 11:12:33 +0300 Subject: [PATCH] remove contenttype check from content type watcher --- src/components/post_status_form/post_status_form.js | 8 ++------ 1 file 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()