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 inReplyToStatusId: this.replyTo
}) })
this.newStatus = { } this.newStatus = { }
this.$emit('posted')
} }
} }
} }

View file

@ -35,7 +35,7 @@
<div> <div>
<div class='status-actions'> <div class='status-actions'>
<div> <div>
<a href="#" v-on:click.prevent="toggleReplying()"> <a href="#" v-on:click.prevent="toggleReplying">
<i class='fa icon-reply'></i> <i class='fa icon-reply'></i>
</a> </a>
</div> </div>
@ -45,7 +45,7 @@
<favorite-button :status=status></favorite-button> <favorite-button :status=status></favorite-button>
</div> </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> </div>
</div> </div>