2019-02-26 03:51:04 +00:00
|
|
|
<template>
|
|
|
|
<basic-user-card :user="user">
|
2019-02-26 16:00:25 +00:00
|
|
|
<template slot="primary-area">
|
|
|
|
<span class="faint" v-if="!noFollowsYou && user.follows_you">
|
|
|
|
{{ isMe ? $t('user_card.its_you') : $t('user_card.follows_you') }}
|
|
|
|
</span>
|
|
|
|
</template>
|
2019-02-26 03:51:04 +00:00
|
|
|
<template slot="secondary-area">
|
2019-02-26 03:57:40 +00:00
|
|
|
<button
|
|
|
|
v-if="showFollow"
|
|
|
|
class="btn btn-default"
|
|
|
|
@click="followUser"
|
2019-02-26 15:14:12 +00:00
|
|
|
:disabled="inProgress"
|
2019-02-26 03:57:40 +00:00
|
|
|
:title="requestSent ? $t('user_card.follow_again') : ''"
|
|
|
|
>
|
2019-02-26 15:14:12 +00:00
|
|
|
<template v-if="inProgress">
|
2019-02-26 03:57:40 +00:00
|
|
|
{{ $t('user_card.follow_progress') }}
|
|
|
|
</template>
|
|
|
|
<template v-else-if="requestSent">
|
|
|
|
{{ $t('user_card.follow_sent') }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ $t('user_card.follow') }}
|
|
|
|
</template>
|
|
|
|
</button>
|
2019-02-26 15:14:12 +00:00
|
|
|
<button v-if="following" class="btn btn-default pressed" @click="unfollowUser" :disabled="inProgress">
|
|
|
|
<template v-if="inProgress">
|
2019-02-26 03:57:40 +00:00
|
|
|
{{ $t('user_card.follow_progress') }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ $t('user_card.follow_unfollow') }}
|
|
|
|
</template>
|
|
|
|
</button>
|
2019-02-26 03:51:04 +00:00
|
|
|
</template>
|
|
|
|
</basic-user-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./follow_card.js"></script>
|