aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card_content/user_card_content.vue
diff options
context:
space:
mode:
authorshpuld <shpuld@gmail.com>2017-02-18 15:48:27 +0200
committershpuld <shpuld@gmail.com>2017-02-18 15:48:27 +0200
commite86b1d71ee325a47fdcc10ffe1912e81fe7de9b5 (patch)
treefac772ab392e26b09727ec1889eaad319b5dc5c1 /src/components/user_card_content/user_card_content.vue
parent4e366f27a17f4f50282903b7190fb29452ee33dc (diff)
Changed following-info to user-interactions and moved muting there, made everything in user-interactions look a bit neater
Diffstat (limited to 'src/components/user_card_content/user_card_content.vue')
-rw-r--r--src/components/user_card_content/user_card_content.vue30
1 files changed, 17 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..0ee1d86f 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>