feat: content tab QA fixes for panel pre-release (#5588)

* feat: use new_filters + other qa fixes

* fix: double admons + lint
This commit is contained in:
Calum H.
2026-03-17 17:47:58 +00:00
committed by GitHub
parent 496bbae8a0
commit 63ea8230ba
9 changed files with 19 additions and 35 deletions

View File

@@ -1,8 +1,5 @@
<template>
<div class="flex flex-col gap-4">
<Admonition v-if="backupBusyReason" type="warning" :header="backupBusyReason">
Some options may not be editable while the operation is in progress.
</Admonition>
<ServerSidebar :route="route" :nav-links="navLinks" />
</div>
</template>
@@ -18,7 +15,7 @@ import {
VersionIcon,
WrenchIcon,
} from '@modrinth/assets'
import { Admonition, injectModrinthServerContext, useVIntl } from '@modrinth/ui'
import { injectModrinthServerContext } from '@modrinth/ui'
import { isAdmin as isUserAdmin, type User } from '@modrinth/utils'
import ServerSidebar from '~/components/ui/servers/ServerSidebar.vue'
@@ -27,17 +24,7 @@ const route = useRoute()
const serverId = route.params.id as string
const auth = await useAuth()
const { formatMessage } = useVIntl()
const { server, busyReasons } = injectModrinthServerContext()
const backupBusyReason = computed(() => {
const reason = busyReasons.value.find(
(r) =>
r.reason.id === 'servers.busy.backup-creating' ||
r.reason.id === 'servers.busy.backup-restoring',
)
return reason ? formatMessage(reason.reason) : null
})
const { server } = injectModrinthServerContext()
useHead({
title: `Options - ${server.value?.name ?? 'Server'} - Modrinth`,