aboutsummaryrefslogtreecommitdiff
path: root/src/components/account_actions/account_actions.js
blob: 204d506a2d28a82aa4fe5dcc2080c6ad52c56333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import ProgressButton from '../progress_button/progress_button.vue'

const AccountActions = {
  props: [
    'user'
  ],
  data () {
    return { }
  },
  components: {
    ProgressButton
  },
  methods: {
    showRepeats () {
      this.$store.dispatch('showReblogs', this.user.id)
    },
    hideRepeats () {
      this.$store.dispatch('hideReblogs', this.user.id)
    },
    blockUser () {
      this.$store.dispatch('blockUser', this.user.id)
    },
    unblockUser () {
      this.$store.dispatch('unblockUser', this.user.id)
    },
    reportUser () {
      this.$store.dispatch('openUserReportingModal', this.user.id)
    },
    mentionUser () {
      this.$store.dispatch('openPostStatusModal', { replyTo: true, repliedUser: this.user })
    }
  }
}

export default AccountActions