You've already forked AstralRinth
forked from didirus/AstralRinth
Fix logged in user stall (#1114)
This commit is contained in:
@@ -99,13 +99,6 @@ export default defineNuxtConfig({
|
|||||||
type: 'font/woff2',
|
type: 'font/woff2',
|
||||||
crossorigin: true,
|
crossorigin: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
rel: 'preload',
|
|
||||||
href: 'https://cdn-raw.modrinth.com/fonts/inter/Inter-ExtraBold.woff2?v=3.19',
|
|
||||||
as: 'font',
|
|
||||||
type: 'font/woff2',
|
|
||||||
crossorigin: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
rel: 'icon',
|
rel: 'icon',
|
||||||
type: 'image/x-icon',
|
type: 'image/x-icon',
|
||||||
|
|||||||
@@ -282,7 +282,7 @@
|
|||||||
Report
|
Report
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="!$user.value.follows.find((x) => x.id === project.id)"
|
v-if="!user.follows.find((x) => x.id === project.id)"
|
||||||
class="iconified-button"
|
class="iconified-button"
|
||||||
@click="userFollowProject(project)"
|
@click="userFollowProject(project)"
|
||||||
>
|
>
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
Follow
|
Follow
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-if="$user.value.follows.find((x) => x.id === project.id)"
|
v-if="user.follows.find((x) => x.id === project.id)"
|
||||||
class="iconified-button"
|
class="iconified-button"
|
||||||
@click="userUnfollowProject(project)"
|
@click="userUnfollowProject(project)"
|
||||||
>
|
>
|
||||||
@@ -747,6 +747,8 @@ import Breadcrumbs from '~/components/ui/Breadcrumbs.vue'
|
|||||||
const data = useNuxtApp()
|
const data = useNuxtApp()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
|
const user = await useUser()
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!route.params.id ||
|
!route.params.id ||
|
||||||
!(
|
!(
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
export default defineNuxtPlugin(async (nuxtApp) => {
|
export default defineNuxtPlugin(async (nuxtApp) => {
|
||||||
const authStore = await useAuth()
|
const authStore = await useAuth()
|
||||||
const userStore = await useUser(true)
|
await useUser()
|
||||||
const cosmeticsStore = useCosmetics()
|
const cosmeticsStore = useCosmetics()
|
||||||
const tagsStore = useTags()
|
const tagsStore = useTags()
|
||||||
|
|
||||||
nuxtApp.provide('auth', authStore.value)
|
nuxtApp.provide('auth', authStore.value)
|
||||||
nuxtApp.provide('user', userStore)
|
|
||||||
nuxtApp.provide('cosmetics', cosmeticsStore.value)
|
nuxtApp.provide('cosmetics', cosmeticsStore.value)
|
||||||
nuxtApp.provide('tag', tagsStore.value)
|
nuxtApp.provide('tag', tagsStore.value)
|
||||||
nuxtApp.provide('notify', (notif) => addNotification(notif))
|
nuxtApp.provide('notify', (notif) => addNotification(notif))
|
||||||
|
|||||||
Reference in New Issue
Block a user