+ Made filters optional

This commit is contained in:
Alexis
2021-03-28 18:38:02 +02:00
parent 38c1f33952
commit 4da4f2f362

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="celestial-list-wrapper"> <div class="celestial-list-wrapper">
<celestial-filters @filter:celestials="filterCelestials" /> <celestial-filters v-if="hasFilters" @filter:celestials="filterCelestials" />
<ul v-if="celestials" class="celestial-list grid no-style"> <ul v-if="celestials" class="celestial-list grid no-style">
<li <li
v-for="(celestial, index) in sortedCelestials" v-for="(celestial, index) in sortedCelestials"
@@ -29,6 +29,10 @@ export default defineComponent({
celestials: { celestials: {
type: Array, type: Array,
required: true required: true
},
hasFilters: {
type: Boolean,
default: true
} }
}, },