+ Made filters optional
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user