2019-02-14 06:55:02 +11:00
|
|
|
<template>
|
|
|
|
<basic-user-card :user="user">
|
2019-02-28 03:58:29 +11:00
|
|
|
<div class="block-card-content-container">
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
v-if="blocked"
|
2020-11-24 21:32:42 +11:00
|
|
|
class="btn button-default"
|
2019-07-05 17:17:44 +10:00
|
|
|
:disabled="progress"
|
|
|
|
@click="unblockUser"
|
|
|
|
>
|
2019-02-14 06:55:02 +11:00
|
|
|
<template v-if="progress">
|
|
|
|
{{ $t('user_card.unblock_progress') }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ $t('user_card.unblock') }}
|
|
|
|
</template>
|
|
|
|
</button>
|
2019-07-05 17:17:44 +10:00
|
|
|
<button
|
|
|
|
v-else
|
2020-11-24 21:32:42 +11:00
|
|
|
class="btn button-default"
|
2019-07-05 17:17:44 +10:00
|
|
|
:disabled="progress"
|
|
|
|
@click="blockUser"
|
|
|
|
>
|
2019-02-14 07:31:20 +11:00
|
|
|
<template v-if="progress">
|
|
|
|
{{ $t('user_card.block_progress') }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ $t('user_card.block') }}
|
|
|
|
</template>
|
|
|
|
</button>
|
2019-02-28 03:58:29 +11:00
|
|
|
</div>
|
2019-02-14 06:55:02 +11:00
|
|
|
</basic-user-card>
|
|
|
|
</template>
|
|
|
|
|
2019-02-28 03:58:29 +11:00
|
|
|
<script src="./block_card.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.block-card-content-container {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
text-align: right;
|
|
|
|
button {
|
|
|
|
width: 10em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|