Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 20 additions & 26 deletions apps/frontend/src/components/ui/moderation/ModerationReportCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@
</template>
<template #closedActions>
<Button
v-if="isStaff(auth.user)"
type="colored"
color="green"
class="mt-2 w-full gap-2 sm:w-auto"
Expand All @@ -234,28 +233,26 @@
</Button>
</template>
<template #additionalActions="{ hasReply }">
<template v-if="isStaff(auth.user)">
<Button
v-if="hasReply"
type="colored"
color="red"
class="w-full gap-2 sm:w-auto"
@click="closeReport(true)"
>
<CheckCircleIcon class="size-4" />
Reply and close
</Button>
<Button
v-else
type="colored"
color="red"
class="w-full gap-2 sm:w-auto"
@click="closeReport()"
>
<CheckCircleIcon class="size-4" />
Close report
</Button>
</template>
<Button
v-if="hasReply"
type="colored"
color="red"
class="w-full gap-2 sm:w-auto"
@click="closeReport(true)"
>
<CheckCircleIcon class="size-4" />
Reply and close
</Button>
<Button
v-else
type="colored"
color="red"
class="w-full gap-2 sm:w-auto"
@click="closeReport()"
>
<CheckCircleIcon class="size-4" />
Close report
</Button>
</template>
</ThreadView>
</div>
Expand Down Expand Up @@ -289,8 +286,6 @@ import {
import { formatProjectType } from '@modrinth/utils'
import { computed, ref, watch } from 'vue'

import { isStaff } from '~/helpers/users.js'

import ThreadView from '../thread/ThreadView.vue'
import SharedInstanceReportContext, {
type SharedInstanceOwnerInstance,
Expand All @@ -301,7 +296,6 @@ import SharedInstanceReportContext, {
const { addNotification } = injectNotificationManager()
const { formatMessage } = useVIntl()
const client = injectModrinthClient()
const auth = await useAuth()

type SharedInstanceVersionDependency = Labrinth.Versions.v2.Dependency & {
project_id?: string
Expand Down
Loading