Modpack alpha release (#469)

This commit is contained in:
venashial
2022-05-15 17:54:59 -07:00
committed by GitHub
parent 63b2bb55a1
commit 46d1537d8f
9 changed files with 79 additions and 6 deletions

View File

@@ -56,7 +56,11 @@
<p class="description">
{{ description }}
</p>
<Categories :categories="categories" class="right-categories" />
<Categories
:categories="categories"
:type="type"
class="right-categories"
/>
<div class="dates">
<div class="date">
<CalendarIcon aria-hidden="true" />

View File

@@ -18,12 +18,20 @@ export default {
return []
},
},
type: {
type: String,
required: true,
},
},
computed: {
categoriesFiltered() {
return this.$tag.categories
.concat(this.$tag.loaders)
.filter((x) => this.categories.includes(x.name))
.filter(
(x) =>
this.categories.includes(x.name) &&
(!x.project_type || x.project_type === this.type)
)
},
},
}