migration

This commit is contained in:
Henry Jameson 2026-08-10 15:00:59 +03:00
commit 7d4ced15c6
90 changed files with 311 additions and 1165 deletions

View file

@ -7,6 +7,7 @@ import UserLink from 'src/components/user_link/user_link.vue'
import { useOAuthStore } from 'src/stores/oauth.js'
import { useReportsStore } from 'src/stores/reports.js'
import { useUsersStore } from 'src/stores/users.js'
import { reportUser } from 'src/api/user.js'
@ -28,7 +29,7 @@ const UserReportingModal = {
},
computed: {
isLoggedIn() {
return !!this.$store.state.users.currentUser
return !!useUsersStore().currentUser
},
isOpen() {
return this.isLoggedIn && this.reportModal.activated
@ -37,7 +38,7 @@ const UserReportingModal = {
return this.reportModal.userId
},
user() {
return this.$store.getters.findUser(this.userId)
return useUsersStore().findUser(this.userId)
},
remoteInstance() {
return (