Remove needless div wrapper

This commit is contained in:
taehoon 2019-02-25 22:57:40 -05:00
parent 9ca805a991
commit 8923492e68
1 changed files with 25 additions and 27 deletions

View File

@ -1,33 +1,31 @@
<template> <template>
<basic-user-card :user="user"> <basic-user-card :user="user">
<template slot="secondary-area"> <template slot="secondary-area">
<div class="follow-box"> <button
<button v-if="showFollow"
v-if="showFollow" class="btn btn-default"
class="btn btn-default" @click="followUser"
@click="followUser" :disabled="progress"
:disabled="progress" :title="requestSent ? $t('user_card.follow_again') : ''"
:title="requestSent ? $t('user_card.follow_again') : ''" >
> <template v-if="progress">
<template v-if="progress"> {{ $t('user_card.follow_progress') }}
{{ $t('user_card.follow_progress') }} </template>
</template> <template v-else-if="requestSent">
<template v-else-if="requestSent"> {{ $t('user_card.follow_sent') }}
{{ $t('user_card.follow_sent') }} </template>
</template> <template v-else>
<template v-else> {{ $t('user_card.follow') }}
{{ $t('user_card.follow') }} </template>
</template> </button>
</button> <button v-if="following" class="btn btn-default pressed" @click="unfollowUser" :disabled="progress">
<button v-if="following" class="btn btn-default pressed" @click="unfollowUser" :disabled="progress"> <template v-if="progress">
<template v-if="progress"> {{ $t('user_card.follow_progress') }}
{{ $t('user_card.follow_progress') }} </template>
</template> <template v-else>
<template v-else> {{ $t('user_card.follow_unfollow') }}
{{ $t('user_card.follow_unfollow') }} </template>
</template> </button>
</button>
</div>
</template> </template>
<template slot="third-area"> <template slot="third-area">
<span class="faint" v-if="!noFollowsYou && user.follows_you"> <span class="faint" v-if="!noFollowsYou && user.follows_you">