migrate SubscribeButton to the existing common component

This commit is contained in:
taehoon 2019-04-25 04:19:22 -04:00
parent d5e8315e83
commit 4cf402ff21
4 changed files with 16 additions and 51 deletions

View file

@ -72,7 +72,14 @@
</button>
</span>
</div>
<SubscribeButton :user="user" />
<div>
<ProgressButton :click="subscribeUser" v-if="!user.subscribing">
Subscribe
</ProgressButton>
<ProgressButton class="pressed" :click="unsubscribeUser" v-else>
Subscribing!
</ProgressButton>
</div>
<div class='mute' v-if='isOtherUser && loggedIn'>
<span v-if='user.muted'>
<button @click="unmuteUser" class="pressed">