logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

domain_mute_card.js (551B)


  1. import ProgressButton from '../progress_button/progress_button.vue'
  2. const DomainMuteCard = {
  3. props: ['domain'],
  4. components: {
  5. ProgressButton
  6. },
  7. computed: {
  8. user () {
  9. return this.$store.state.users.currentUser
  10. },
  11. muted () {
  12. return this.user.domainMutes.includes(this.domain)
  13. }
  14. },
  15. methods: {
  16. unmuteDomain () {
  17. return this.$store.dispatch('unmuteDomain', this.domain)
  18. },
  19. muteDomain () {
  20. return this.$store.dispatch('muteDomain', this.domain)
  21. }
  22. }
  23. }
  24. export default DomainMuteCard