pleroma-fe/src/components/mute_card/mute_card.vue

35 lines
893 B
Vue
Raw Normal View History

2019-02-14 14:04:28 +11:00
<template>
<basic-user-card :user="user">
2019-03-01 14:59:26 +11:00
<div class="mute-card-content-container">
2019-02-14 14:04:28 +11:00
<button class="btn btn-default" @click="unmuteUser" :disabled="progress" v-if="muted">
<template v-if="progress">
{{ $t('user_card.unmute_progress') }}
</template>
<template v-else>
{{ $t('user_card.unmute') }}
</template>
</button>
<button class="btn btn-default" @click="muteUser" :disabled="progress" v-else>
<template v-if="progress">
{{ $t('user_card.mute_progress') }}
</template>
<template v-else>
{{ $t('user_card.mute') }}
</template>
</button>
2019-03-01 14:59:26 +11:00
</div>
2019-02-14 14:04:28 +11:00
</basic-user-card>
</template>
2019-03-01 14:59:26 +11: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>