Skip to content
Snippets Groups Projects

Autocomplete domain mutes from list of known instances

Merged Sergey Suprunenko requested to merge feature/autocomplete-domain-mutes into develop
1 unresolved thread
Files
8
@@ -5,9 +5,20 @@ const DomainMuteCard = {
components: {
ProgressButton
},
computed: {
user () {
return this.$store.state.users.currentUser
},
muted () {
return this.user.domainMutes.includes(this.domain)
}
},
methods: {
unmuteDomain () {
return this.$store.dispatch('unmuteDomain', this.domain)
},
muteDomain () {
return this.$store.dispatch('muteDomain', this.domain)
}
}
}
Loading