remove blocked one from the results on real time

This commit is contained in:
taehoon 2019-04-02 14:27:22 -04:00
parent 33467880ed
commit 9184435887
2 changed files with 13 additions and 8 deletions

View file

@ -1,8 +1,8 @@
<template>
<div class="user-autosuggest" v-click-outside="onClickOutside">
<input v-model="query" placeholder="Search whom you want to block" @click="onInputClick" class="user-autosuggest-input" />
<div class="user-autosuggest-results" v-if="resultsVisible && results.length > 0">
<BlockCard v-for="user in results" :key="user.id" :userId="user.id"/>
<div class="user-autosuggest-results" v-if="resultsVisible && filtered.length > 0">
<BlockCard v-for="userId in filtered" :key="userId" :userId="userId"/>
</div>
</div>
</template>