diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-20 18:58:18 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-20 18:58:18 +0100 |
| commit | 5d8b2eb8b57efa36f9bde45fbbffc2e19f675eb4 (patch) | |
| tree | f7883fdbe27a2cfd81ff72437450976cc243d2f2 /src/components/user_card_content/user_card_content.vue | |
| parent | 9d0d1f7de1e37cb40d7ecd34fd93744f55142e2b (diff) | |
| parent | 73afa8e075cd8e97b09526e2393b0aafc9c8e4e5 (diff) | |
Merge branch 'develop' into feature/hash-routed
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
| -rw-r--r-- | src/components/user_card_content/user_card_content.vue | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 2c32406b..59cee734 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -3,30 +3,34 @@ <div class="base00-background panel-heading text-center" v-bind:style="style"> <div class='user-info'> <img :src="user.profile_image_url"> - <div v-if='user.muted' class='muteinfo'>Muted</div> - <div class='muteinfo' v-if='isOtherUser'> - <button @click="toggleMute">Mute/Unmute</button> - </div> <span class="glyphicon glyphicon-user"></span> <div class='user-name'>{{user.name}}</div> <div class='user-screen-name'>@{{user.screen_name}}</div> - <div v-if="isOtherUser" class="following-info"> - <div v-if="user.follows_you" class="following"> + <div v-if="isOtherUser" class="user-interactions"> + <div v-if="user.follows_you" class="following base06"> Follows you! </div> - <div class="followed"> + <div class="follow"> <span v-if="user.following"> - Following them! - <button @click="unfollowUser"> - Unfollow! + <!--Following them!--> + <button @click="unfollowUser" class="base06 base01-background base06-border"> + Unfollow </button> </span> - <span v-if="!user.following" > - <button @click="followUser"> - Follow! + <span v-if="!user.following"> + <button @click="followUser" class="base01 base04-background base01-border"> + Follow </button> </span> </div> + <div class='mute' v-if='isOtherUser'> + <span v-if='user.muted'> + <button @click="toggleMute" class="base04 base01-background base06-border">Unmute</button> + </span> + <span v-if='!user.muted'> + <button @click="toggleMute" class="base01 base04-background base01-border">Mute</button> + </span> + </div> </div> </div> </div> @@ -78,6 +82,7 @@ toggleMute () { const store = this.$store store.commit('setMuted', {user: this.user, muted: !this.user.muted}) + store.state.api.backendInteractor.setUserMute(this.user) } } } |
