Skip to content

Commit 438b33c

Browse files
committed
Show game tickets in global admin page
1 parent f1594c3 commit 438b33c

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

backend/routes/api.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@
297297
$data['report_count'] = Report::whereArchived(false)->count();
298298
$data['waiting_count'] = Mod::whereApproved(null)->count();
299299
$data['ticket_count'] = Thread::where('closed', false)
300-
->where('forum_id', 1)
301300
->whereHas('category', function($q) {
302301
$q->where('tickets_mode', true);
303302
})->count();

frontend/app/components/site/list-thread.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
<m-time :datetime="thread.created_at" relative/>
2626
</template>
2727
<template #place>
28-
<m-flex class="items-center">
28+
<m-flex class="items-center" gap="0">
2929
<NuxtLink v-if="!forumId" class="text-inherit" :to="thread.game_id ? `/g/${thread.game?.short_name}/forum` : '/forum'">
30-
{{ thread.game_id ? (thread.game?.name ?? $t('not_available')) : $t('global_forum') }}
30+
{{ thread.game ? (thread.game?.name ?? $t('not_available')) : $t('global_forum') }}
3131
</NuxtLink>
3232
<i-mdi-menu-right v-if="!forumId"/>
3333
<NuxtLink class="text-inherit" :to="categoryLink ? `${to}?category=${thread.category_id}` : undefined">

frontend/app/pages/admin/tickets.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<thread-list
33
:title="$t('tickets')"
44
title-link="/forum"
5-
:forum-id="game?.forum_id ?? 1"
5+
:forum-id="game?.forum_id"
66
alt-background
77
:limit="10"
88
pagination

0 commit comments

Comments
 (0)