Hide after posting.

This commit is contained in:
Roger Braun 2016-11-03 17:35:49 +01:00
parent 2c999ce5a2
commit 572aceb7e7
2 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@ const PostStatusForm = {
inReplyToStatusId: this.replyTo
})
this.newStatus = { }
this.$emit('posted')
}
}
}

View File

@ -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>