Move submitDisable into data.

It's not a prop, these are only for passing data, not for local data.
このコミットが含まれているのは:
Roger Braun 2016-11-26 12:38:33 +01:00
コミット b812adf0ba
1個のファイルの変更2行の追加3行の削除

ファイルの表示

@ -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: []