Move submitDisable into data.
It's not a prop, these are only for passing data, not for local data.
This commit is contained in:
parent
cb940a8742
commit
b812adf0ba
|
@ -23,14 +23,12 @@ const PostStatusForm = {
|
||||||
props: [
|
props: [
|
||||||
'replyTo',
|
'replyTo',
|
||||||
'repliedUser',
|
'repliedUser',
|
||||||
'attentions',
|
'attentions'
|
||||||
'submitDisabled'
|
|
||||||
],
|
],
|
||||||
components: {
|
components: {
|
||||||
MediaUpload
|
MediaUpload
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
this.submitDisabled = false
|
|
||||||
let statusText = ''
|
let statusText = ''
|
||||||
|
|
||||||
if (this.replyTo) {
|
if (this.replyTo) {
|
||||||
|
@ -39,6 +37,7 @@ const PostStatusForm = {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
submitDisabled: false,
|
||||||
newStatus: {
|
newStatus: {
|
||||||
status: statusText,
|
status: statusText,
|
||||||
files: []
|
files: []
|
||||||
|
|
Loading…
Reference in New Issue