mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Set base filters for kind template
This commit is contained in:
parent
a893f7d1ef
commit
b50be1b27a
1 changed files with 10 additions and 1 deletions
|
|
@ -6,7 +6,11 @@
|
|||
import { DoesItAPI } from '~/helpers/api/client.js'
|
||||
import { getPathPartsFromAstroRequest } from '~/helpers/url.js'
|
||||
import { catchRedirectResponse } from '~/helpers/astro/request.js'
|
||||
import { categories, getKindToCategorySlug } from '~/helpers/categories.js'
|
||||
import {
|
||||
categories,
|
||||
getKindToCategorySlug,
|
||||
makeCategoryFilterFromCategorySlug
|
||||
} from '~/helpers/categories.js'
|
||||
|
||||
import Layout from '../../layouts/default.astro'
|
||||
import Search from '~/components/search-stork.vue'
|
||||
|
|
@ -35,6 +39,10 @@ const categorySlug = getKindToCategorySlug( pathSlug )
|
|||
|
||||
const category = categories[ categorySlug ]
|
||||
|
||||
const baseFilters = [
|
||||
makeCategoryFilterFromCategorySlug( categorySlug ),
|
||||
]
|
||||
|
||||
const pageLabel = category?.pluralLabel || category.label
|
||||
|
||||
---
|
||||
|
|
@ -69,6 +77,7 @@ const pageLabel = category?.pluralLabel || category.label
|
|||
|
||||
<Search
|
||||
kind-page={ kindPage }
|
||||
base-filters={ baseFilters }
|
||||
|
||||
client:load
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue