Skip to content

Commit

Permalink
Fix: user - disable follow button if blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 authored and fs5m8 committed Jan 5, 2023
1 parent 2e9b5e7 commit 4cd05ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/app/common/views/deck/deck.user-column.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<header :style="bannerStyle">
<div>
<button class="menu" @click="menu" ref="menu"><fa icon="ellipsis-h"/></button>
<mk-follow-button v-if="$store.getters.isSignedIn && user.id != $store.state.i.id" :user="user" class="follow" mini/>
<mk-follow-button v-if="$store.getters.isSignedIn && user.id != $store.state.i.id && !user.isBlocking" :user="user" class="follow" mini/>
<mk-avatar class="avatar" :user="user" :disable-preview="true" :key="user.id"/>
<router-link class="name" :to="user | userPage()">
<mk-user-name :user="user" :key="user.id" :nowrap="false"/>
Expand Down
2 changes: 1 addition & 1 deletion src/client/app/desktop/views/home/user/user.header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<span class="followed" v-if="$store.getters.isSignedIn && $store.state.i.id != user.id && user.isFollowed">{{ $t('follows-you') }}</span>
<div class="actions" v-if="$store.getters.isSignedIn">
<button @click="menu" class="menu" ref="menu"><fa icon="ellipsis-h"/></button>
<mk-follow-button v-if="$store.state.i.id != user.id" :user="user" :inline="true" :transparent="false" class="follow"/>
<mk-follow-button v-if="$store.state.i.id != user.id && !user.isBlocking" :user="user" :inline="true" :transparent="false" class="follow"/>
</div>
<div class="actions" v-else>
<mk-follow-button :user="user" :inline="true" :transparent="false" class="follow"/>
Expand Down
2 changes: 1 addition & 1 deletion src/client/app/mobile/views/pages/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</a>
<div class="actions" v-if="$store.getters.isSignedIn">
<button v-if="$store.getters.isSignedIn" class="menu" ref="menu" @click="menu"><fa icon="ellipsis-h"/></button>
<mk-follow-button v-if="$store.state.i.id != user.id" :user="user" :inline="true" :transparent="false" class="follow"/>
<mk-follow-button v-if="$store.state.i.id != user.id && !user.isBlocking" :user="user" :inline="true" :transparent="false" class="follow"/>
</div>
<div class="actions" v-else>
<mk-follow-button :user="user" :inline="true" :transparent="false" class="follow"/>
Expand Down

0 comments on commit 4cd05ed

Please sign in to comment.