clear code

This commit is contained in:
Maksim Pechnikov 2019-10-17 20:24:54 +03:00
parent 60828f119c
commit b3f590ceb3
3 changed files with 2 additions and 7 deletions

View file

@ -1,7 +1,7 @@
<template> <template>
<button <button
class="btn btn-default follow-button" class="btn btn-default follow-button"
:class="[buttonClass, { pressed: isPressed}]" :class="{ pressed: isPressed }"
:disabled="inProgress" :disabled="inProgress"
:title="title" :title="title"
@click="onClick" @click="onClick"

View file

@ -7,9 +7,6 @@ const FollowCard = {
'user', 'user',
'noFollowsYou' 'noFollowsYou'
], ],
data () {
return { }
},
components: { components: {
BasicUserCard, BasicUserCard,
RemoteFollow, RemoteFollow,
@ -22,8 +19,6 @@ const FollowCard = {
loggedIn () { loggedIn () {
return this.$store.state.users.currentUser return this.$store.state.users.currentUser
} }
},
methods: {
} }
} }

View file

@ -18,7 +18,7 @@
<template v-else> <template v-else>
<FollowButton <FollowButton
:user="user" :user="user"
button-class="follow-card-follow-button" class="follow-card-follow-button"
:label-following="$t('user_card.follow_unfollow')" :label-following="$t('user_card.follow_unfollow')"
/> />
</template> </template>