2019-02-13 11:55:02 -08:00
|
|
|
<template>
|
|
|
|
<basic-user-card :user="user">
|
|
|
|
<template slot="secondary-area">
|
2019-02-13 12:31:20 -08:00
|
|
|
<button class="btn btn-default" @click="unblockUser" :disabled="progress" v-if="blocked">
|
2019-02-13 11:55:02 -08:00
|
|
|
<template v-if="progress">
|
|
|
|
{{ $t('user_card.unblock_progress') }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ $t('user_card.unblock') }}
|
|
|
|
</template>
|
|
|
|
</button>
|
2019-02-13 12:31:20 -08:00
|
|
|
<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>
|
2019-02-13 11:55:02 -08:00
|
|
|
</template>
|
|
|
|
</basic-user-card>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./block_card.js"></script>
|