aboutsummaryrefslogtreecommitdiff
path: root/src/components/block_card/block_card.vue
blob: ed7fe30bde0694f78c462b6397962cd7012f8343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<template>
  <basic-user-card :user="user">
    <template slot="secondary-area">
      <button class="btn btn-default" @click="unblockUser" :disabled="progress" v-if="blocked">
        <template v-if="progress">
          {{ $t('user_card.unblock_progress') }}
        </template>
        <template v-else>
          {{ $t('user_card.unblock') }}
        </template>
      </button>
      <button class="btn btn-default" @click="blockUser" :disabled="progress" v-else>
        <template v-if="progress">
          {{ $t('user_card.block_progress') }}
        </template>
        <template v-else>
          {{ $t('user_card.block') }}
        </template>
      </button>
    </template>
  </basic-user-card>
</template>

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