remove contenttype check from content type watcher
This commit is contained in:
parent
f254a847d2
commit
7bdc3d6ce9
1 changed files with 2 additions and 6 deletions
|
@ -176,12 +176,8 @@ const PostStatusForm = {
|
||||||
...mapGetters(['mergedConfig'])
|
...mapGetters(['mergedConfig'])
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'newStatus.contentType': function (newType) {
|
'newStatus.contentType': function () {
|
||||||
if (newType === 'text/plain') {
|
this.autoPreview()
|
||||||
this.closePreview()
|
|
||||||
} else if (this.preview) {
|
|
||||||
this.previewStatus(this.newStatus)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
'newStatus.spoilerText': function () {
|
'newStatus.spoilerText': function () {
|
||||||
this.autoPreview()
|
this.autoPreview()
|
||||||
|
|
Loading…
Reference in a new issue