yandere_fe/src/components/block_card/block_card.vue

45 lines
982 B
Vue
Raw Normal View History

2019-02-13 11:55:02 -08:00
<template>
<basic-user-card :user="user">
<div class="block-card-content-container">
2019-07-05 00:17:44 -07:00
<button
v-if="blocked"
class="btn btn-default"
:disabled="progress"
@click="unblockUser"
>
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-07-05 00:17:44 -07:00
<button
v-else
class="btn btn-default"
:disabled="progress"
@click="blockUser"
>
2019-02-13 12:31:20 -08:00
<template v-if="progress">
{{ $t('user_card.block_progress') }}
</template>
<template v-else>
{{ $t('user_card.block') }}
</template>
</button>
</div>
2019-02-13 11:55:02 -08:00
</basic-user-card>
</template>
<script src="./block_card.js"></script>
<style lang="scss">
.block-card-content-container {
margin-top: 0.5em;
text-align: right;
button {
width: 10em;
}
}
</style>