aboutsummaryrefslogtreecommitdiff
path: root/src/components/subscribe_button/subscribe_button.vue
blob: f7dd8c61975fa918d2aa2e6c649ac3f9712366d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<template>
  <div>
    <button
      @click.prevent="subscribe"
      class="btn btn-default follow-card-follow-button"
      :disabled="inProgress"
      v-if="!user.subscribing"
    >
      Subscribe
    </button>
    <button
      @click.prevent="unsubscribe"
      class="btn btn-default follow-card-follow-button pressed"
      :disabled="inProgress"
      v-else
    >
      Subscribing!
    </button>
  </div>
</template>

<script src="./subscribe_button.js"></script>