Commit b812adf0 authored by lain's avatar lain
Browse files

Move submitDisable into data.

It's not a prop, these are only for passing data, not for local data.
parent cb940a87
......@@ -23,14 +23,12 @@ const PostStatusForm = {
props: [
'replyTo',
'repliedUser',
'attentions',
'submitDisabled'
'attentions'
],
components: {
MediaUpload
},
data () {
this.submitDisabled = false
let statusText = ''
if (this.replyTo) {
......@@ -39,6 +37,7 @@ const PostStatusForm = {
}
return {
submitDisabled: false,
newStatus: {
status: statusText,
files: []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment