aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-06 11:12:33 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-06 11:12:33 +0300
commit7bdc3d6ce9c7e1d3831ee3e95fcc352ccc670ae8 (patch)
tree98f1ac8784604ffe62c33c19666fda673c94a83e /src
parentf254a847d2fa7e57c3686a3b51fef234fcf253bd (diff)
remove contenttype check from content type watcher
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()