make UserAutoSuggest component more generic

This commit is contained in:
taehoon 2019-04-02 15:41:26 -04:00
parent 5c2c222252
commit 8410add394
4 changed files with 34 additions and 19 deletions

View file

@ -1,6 +1,6 @@
<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" />
<input v-model="term" placeholder="Search whom you want to block" @click="onInputClick" class="user-autosuggest-input" />
<div class="user-autosuggest-results" v-if="resultsVisible && filtered.length > 0">
<BlockCard v-for="userId in filtered" :key="userId" :userId="userId"/>
</div>