🎨 Simplify search.vue & minor changes

This commit is contained in:
Kevin
2019-11-15 18:14:17 +01:00
parent 5388f2fe44
commit 75bb55a6a3
4 changed files with 21 additions and 18 deletions

View File

@@ -4,7 +4,12 @@
h1(v-if="showTitle") {{ category.title }}
transition(name="fade-card")
div(v-if="showCards")
<component :is="areCardsVisible ? 'CardsView' : 'TableView'" :category="category" :createCopyUrl="createCopyUrl" :activeCard='activeCard'></component>
component(
:is="areCardsVisible ? 'CardsView' : 'TableView'"
:resources="category.resources"
:createCopyUrl="createCopyUrl"
:activeCard='activeCard'
)
</template>
<script>