block_card.vue 904 Bytes
Newer Older
Tae Hoon's avatar
Tae Hoon committed
1 2
<template>
  <basic-user-card :user="user">
3
    <div class="block-card-content-container">
Tae Hoon's avatar
Tae Hoon committed
4
      <button class="btn btn-default" @click="unblockUser" :disabled="progress" v-if="blocked">
Tae Hoon's avatar
Tae Hoon committed
5 6 7 8 9 10 11
        <template v-if="progress">
          {{ $t('user_card.unblock_progress') }}
        </template>
        <template v-else>
          {{ $t('user_card.unblock') }}
        </template>
      </button>
Tae Hoon's avatar
Tae Hoon committed
12 13 14 15 16 17 18 19
      <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>
20
    </div>
Tae Hoon's avatar
Tae Hoon committed
21 22 23
  </basic-user-card>
</template>

24 25 26 27 28 29 30 31 32 33 34
<script src="./block_card.js"></script>

<style lang="scss">
.block-card-content-container {
  margin-top: 0.5em;
  text-align: right;
  button {
    width: 10em;
  }
}
</style>