BUGFIX: Don`t render follow button for own account

This commit is contained in:
Markus Günther 2018-08-15 21:12:19 +02:00
parent c40c6e9785
commit 07bbfbdb8d
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@
<div v-else-if="relationship.requested">
<icon name="hourglass" scale="1.5"></icon>
</div>
<div v-else class="follow" @click="follow(account)">
<div v-else-if="account.username!==user.username" class="follow" @click="follow(account)">
<icon name="user-plus" scale="1.5"></icon>
</div>
</div>
@ -104,6 +104,7 @@ export default {
computed: {
...mapState({
account: state => state.TimelineSpace.Contents.SideBar.AccountProfile.account,
user: state => state.TimelineSpace.account,
relationship: state => state.TimelineSpace.Contents.SideBar.AccountProfile.relationship,
loading: state => state.TimelineSpace.Contents.SideBar.AccountProfile.loading,
theme: (state) => {