2020-01-15 12:22:54 -08:00
|
|
|
import ProgressButton from '../progress_button/progress_button.vue'
|
|
|
|
|
|
|
|
const DomainMuteCard = {
|
|
|
|
props: ['domain'],
|
|
|
|
components: {
|
|
|
|
ProgressButton
|
|
|
|
},
|
2020-05-10 03:54:55 -07:00
|
|
|
computed: {
|
|
|
|
user () {
|
|
|
|
return this.$store.state.users.currentUser
|
|
|
|
},
|
|
|
|
muted () {
|
|
|
|
return this.user.domainMutes.includes(this.domain)
|
|
|
|
}
|
|
|
|
},
|
2020-01-15 12:22:54 -08:00
|
|
|
methods: {
|
|
|
|
unmuteDomain () {
|
|
|
|
return this.$store.dispatch('unmuteDomain', this.domain)
|
2020-05-10 03:54:55 -07:00
|
|
|
},
|
|
|
|
muteDomain () {
|
|
|
|
return this.$store.dispatch('muteDomain', this.domain)
|
2020-01-15 12:22:54 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default DomainMuteCard
|