Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment