2020-01-15 12:22:54 -08:00
|
|
|
<template>
|
|
|
|
<div class="domain-mute-card">
|
|
|
|
<div class="domain-mute-card-domain">
|
|
|
|
{{ domain }}
|
|
|
|
</div>
|
|
|
|
<ProgressButton
|
2020-05-10 03:54:55 -07:00
|
|
|
v-if="muted"
|
2020-01-15 12:22:54 -08:00
|
|
|
:click="unmuteDomain"
|
|
|
|
class="btn btn-default"
|
|
|
|
>
|
|
|
|
{{ $t('domain_mute_card.unmute') }}
|
|
|
|
<template slot="progress">
|
|
|
|
{{ $t('domain_mute_card.unmute_progress') }}
|
|
|
|
</template>
|
|
|
|
</ProgressButton>
|
2020-05-10 03:54:55 -07:00
|
|
|
<ProgressButton
|
|
|
|
v-else
|
|
|
|
:click="muteDomain"
|
|
|
|
class="btn btn-default"
|
|
|
|
>
|
|
|
|
{{ $t('domain_mute_card.mute') }}
|
|
|
|
<template slot="progress">
|
|
|
|
{{ $t('domain_mute_card.mute_progress') }}
|
|
|
|
</template>
|
|
|
|
</ProgressButton>
|
2020-01-15 12:22:54 -08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./domain_mute_card.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.domain-mute-card {
|
|
|
|
flex: 1 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: 0.6em 1em 0.6em 0;
|
|
|
|
|
|
|
|
&-domain {
|
|
|
|
margin-right: 1em;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
width: 10em;
|
|
|
|
}
|
2020-05-10 03:54:55 -07:00
|
|
|
|
|
|
|
.autosuggest-results & {
|
|
|
|
padding-left: 1em;
|
|
|
|
}
|
2020-01-15 12:22:54 -08:00
|
|
|
}
|
|
|
|
</style>
|