Move reports module to store

This commit is contained in:
Sean King 2023-04-06 17:59:12 -06:00
commit ad7d47f440
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
8 changed files with 64 additions and 74 deletions

View file

@ -7,6 +7,7 @@ import { library } from '@fortawesome/fontawesome-svg-core'
import {
faEllipsisV
} from '@fortawesome/free-solid-svg-icons'
import { useReportsStore } from '../../stores/reports'
library.add(
faEllipsisV
@ -73,7 +74,7 @@ const AccountActions = {
this.hideConfirmRemoveUserFromFollowers()
},
reportUser () {
this.$store.dispatch('openUserReportingModal', { userId: this.user.id })
useReportsStore().openUserReportingModal({ userId: this.user.id })
},
openChat () {
this.$router.push({