diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 0d4d87f2..2c015154 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -45,6 +45,7 @@ const PostStatusForm = { inReplyToStatusId: this.replyTo }) this.newStatus = { } + this.$emit('posted') } } } diff --git a/src/components/status/status.vue b/src/components/status/status.vue index f3d36c54..8361aa52 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -35,7 +35,7 @@ <div> <div class='status-actions'> <div> - <a href="#" v-on:click.prevent="toggleReplying()"> + <a href="#" v-on:click.prevent="toggleReplying"> <i class='fa icon-reply'></i> </a> </div> @@ -45,7 +45,7 @@ <favorite-button :status=status></favorite-button> </div> - <post-status-form v-if="replying" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user"></post-status-form> + <post-status-form v-if="replying" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" v-on:posted="toggleReplying"></post-status-form> </div> </div> </div>