BUGFIX: Don`t render follow button for own account
This commit is contained in:
parent
c40c6e9785
commit
07bbfbdb8d
|
@ -18,7 +18,7 @@
|
||||||
<div v-else-if="relationship.requested">
|
<div v-else-if="relationship.requested">
|
||||||
<icon name="hourglass" scale="1.5"></icon>
|
<icon name="hourglass" scale="1.5"></icon>
|
||||||
</div>
|
</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>
|
<icon name="user-plus" scale="1.5"></icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -104,6 +104,7 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
account: state => state.TimelineSpace.Contents.SideBar.AccountProfile.account,
|
account: state => state.TimelineSpace.Contents.SideBar.AccountProfile.account,
|
||||||
|
user: state => state.TimelineSpace.account,
|
||||||
relationship: state => state.TimelineSpace.Contents.SideBar.AccountProfile.relationship,
|
relationship: state => state.TimelineSpace.Contents.SideBar.AccountProfile.relationship,
|
||||||
loading: state => state.TimelineSpace.Contents.SideBar.AccountProfile.loading,
|
loading: state => state.TimelineSpace.Contents.SideBar.AccountProfile.loading,
|
||||||
theme: (state) => {
|
theme: (state) => {
|
||||||
|
|
Loading…
Reference in New Issue