FIX: Uses the accountInfo() mixin in FollowButton

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
pull/793/head
Cyrille Bollu 2019-10-09 14:00:11 +02:00 zatwierdzone przez Robin Appelman
rodzic 5a5d9ce3aa
commit 4394435990
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -22,7 +22,7 @@
<template>
<!-- Show button only if user is authenticated and she is not the same as the account viewed -->
<div v-if="!serverData.public && actorInfo(account) && actorInfo(account).viewerLink!='viewer'">
<div v-if="!serverData.public && accountInfo(account) && accountInfo(account).viewerLink!='viewer'">
<button v-if="isCurrentUserFollowing" :class="{'icon-loading-small': followLoading}"
@click="unfollow()"
@mouseover="followingText=t('social', 'Unfollow')" @mouseleave="followingText=t('social', 'Following')">