Migrate UserCard to FollowCard and FollowRequestCard

This commit is contained in:
taehoon 2019-02-25 23:34:40 -05:00
parent 390b2bcfee
commit 96e7e8235d
6 changed files with 9 additions and 9 deletions

View file

@ -1,8 +1,8 @@
import UserCard from '../user_card/user_card.vue' import FollowRequestCard from '../follow_request_card/follow_request_card.vue'
const FollowRequests = { const FollowRequests = {
components: { components: {
UserCard FollowRequestCard
}, },
created () { created () {
this.updateRequests() this.updateRequests()

View file

@ -4,7 +4,7 @@
{{$t('nav.friend_requests')}} {{$t('nav.friend_requests')}}
</div> </div>
<div class="panel-body"> <div class="panel-body">
<user-card v-for="request in requests" :key="request.id" :user="request" :showApproval="true"></user-card> <FollowRequestCard v-for="request in requests" :key="request.id" :user="request"/>
</div> </div>
</div> </div>
</template> </template>

View file

@ -1,8 +1,8 @@
import UserCard from '../user_card/user_card.vue' import FollowCard from '../follow_card/follow_card.vue'
import userSearchApi from '../../services/new_api/user_search.js' import userSearchApi from '../../services/new_api/user_search.js'
const userSearch = { const userSearch = {
components: { components: {
UserCard FollowCard
}, },
props: [ props: [
'query' 'query'

View file

@ -13,7 +13,7 @@
<i class="icon-spin3 animate-spin"/> <i class="icon-spin3 animate-spin"/>
</div> </div>
<div v-else class="panel-body"> <div v-else class="panel-body">
<user-card v-for="user in users" :key="user.id" :user="user"></user-card> <FollowCard v-for="user in users" :key="user.id" :user="user"/>
</div> </div>
</div> </div>
</template> </template>

View file

@ -1,9 +1,9 @@
import apiService from '../../services/api/api.service.js' import apiService from '../../services/api/api.service.js'
import UserCard from '../user_card/user_card.vue' import FollowCard from '../follow_card/follow_card.vue'
const WhoToFollow = { const WhoToFollow = {
components: { components: {
UserCard FollowCard
}, },
data () { data () {
return { return {

View file

@ -4,7 +4,7 @@
{{$t('who_to_follow.who_to_follow')}} {{$t('who_to_follow.who_to_follow')}}
</div> </div>
<div class="panel-body"> <div class="panel-body">
<user-card v-for="user in users" :key="user.id" :user="user"></user-card> <FollowCard v-for="user in users" :key="user.id" :user="user"/>
</div> </div>
</div> </div>
</template> </template>