remove contenttype check from content type watcher
This commit is contained in:
parent
f254a847d2
commit
7bdc3d6ce9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue