diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-26 12:38:33 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-26 12:38:33 +0100 |
| commit | b812adf0ba23ab7c476da1b78d1842a70ee3e427 (patch) | |
| tree | 0432581fc87f6459cb1227ed043f209d39f27bce | |
| parent | cb940a8742307ee069e3da567058d098f59990b6 (diff) | |
Move submitDisable into data.
It's not a prop, these are only for passing data, not for local data.
| -rw-r--r-- | src/components/post_status_form/post_status_form.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 9995813e..b17fdaa1 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -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: [] |
