remove async await in report card setup

This commit is contained in:
Gravy Boat
2026-08-26 07:56:33 -02:30
parent 715f4954cf
commit 6a779d24a9
@@ -223,7 +223,6 @@
</template> </template>
<template #closedActions> <template #closedActions>
<Button <Button
v-if="isStaff(auth.user)"
type="colored" type="colored"
color="green" color="green"
class="mt-2 w-full gap-2 sm:w-auto" class="mt-2 w-full gap-2 sm:w-auto"
@@ -234,7 +233,7 @@
</Button> </Button>
</template> </template>
<template #additionalActions="{ hasReply }"> <template #additionalActions="{ hasReply }">
<template v-if="isStaff(auth.user)"> <template>
<Button <Button
v-if="hasReply" v-if="hasReply"
type="colored" type="colored"
@@ -301,7 +300,7 @@ import SharedInstanceReportContext, {
const { addNotification } = injectNotificationManager() const { addNotification } = injectNotificationManager()
const { formatMessage } = useVIntl() const { formatMessage } = useVIntl()
const client = injectModrinthClient() const client = injectModrinthClient()
const auth = await useAuth() // const auth = await useAuth()
type SharedInstanceVersionDependency = Labrinth.Versions.v2.Dependency & { type SharedInstanceVersionDependency = Labrinth.Versions.v2.Dependency & {
project_id?: string project_id?: string