2019-02-13 19:04:28 -08:00
|
|
|
<template>
|
|
|
|
<basic-user-card :user="user">
|
2019-02-28 19:59:26 -08:00
|
|
|
<div class="mute-card-content-container">
|
2019-07-05 00:17:44 -07:00
|
|
|
<button
|
|
|
|
v-if="muted"
|
|
|
|
class="btn btn-default"
|
|
|
|
:disabled="progress"
|
|
|
|
@click="unmuteUser"
|
|
|
|
>
|
2019-02-13 19:04:28 -08:00
|
|
|
<template v-if="progress">
|
|
|
|
{{ $t('user_card.unmute_progress') }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ $t('user_card.unmute') }}
|
|
|
|
</template>
|
|
|
|
</button>
|
2019-07-05 00:17:44 -07:00
|
|
|
<button
|
|
|
|
v-else
|
|
|
|
class="btn btn-default"
|
|
|
|
:disabled="progress"
|
|
|
|
@click="muteUser"
|
|
|
|
>
|
2019-02-13 19:04:28 -08:00
|
|
|
<template v-if="progress">
|
|
|
|
{{ $t('user_card.mute_progress') }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ $t('user_card.mute') }}
|
|
|
|
</template>
|
|
|
|
</button>
|
2019-02-28 19:59:26 -08:00
|
|
|
</div>
|
2019-02-13 19:04:28 -08:00
|
|
|
</basic-user-card>
|
|
|
|
</template>
|
|
|
|
|
2019-02-28 19:59:26 -08:00
|
|
|
<script src="./mute_card.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.mute-card-content-container {
|
|
|
|
margin-top: 0.5em;
|
|
|
|
text-align: right;
|
|
|
|
button {
|
|
|
|
width: 10em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|