fix: server search and medal server upgrade (#5903)

* fix: server search sort by

* fix: medal server listing upgrade button

* fix: bottom pagination spacing
This commit is contained in:
Truman Gao
2026-04-24 05:47:13 -06:00
committed by GitHub
parent c44ead2dbe
commit e043a232bc
4 changed files with 21 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
import type { Labrinth } from '@modrinth/api-client'
import { getCategoryIcon, GlobeIcon, SERVER_CATEGORY_ICON_MAP, UserIcon } from '@modrinth/assets'
import { sortedCategories } from '@modrinth/utils'
import { computed, type Ref, ref } from 'vue'
import { computed, type Ref, ref, shallowRef } from 'vue'
import { useRoute } from 'vue-router'
import { defineMessage, LOCALES, useVIntl } from '../composables/i18n'
@@ -138,7 +138,7 @@ export function useServerSearch(opts: {
const route = useRoute()
const serverCurrentSortType = ref<SortType>(SERVER_SORT_TYPES[0])
const serverCurrentSortType = shallowRef<SortType>(SERVER_SORT_TYPES[0])
const serverCurrentFilters = ref<FilterValue[]>([{ type: 'server_status', option: 'online' }])
const serverToggledGroups = ref<string[]>([])