mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
display empty state for search results
This commit is contained in:
parent
27c731cc1a
commit
5cb28d161d
@ -1,8 +1,9 @@
|
||||
<template>
|
||||
<div class="search-results">
|
||||
<tab-navigation :tabs="tabOptions" :activeTab="activeTab" @switchTab="switchTab" />
|
||||
<section v-if="activeResources.length">
|
||||
<masonry-grid v-if="activeTab === 'posts'">
|
||||
<section>
|
||||
<p v-if="!activeResources.length">No results found for "{{ search }}"</p>
|
||||
<masonry-grid v-else-if="activeTab === 'posts'">
|
||||
<masonry-grid-item v-for="resource in activeResources" :key="resource.key">
|
||||
<post-teaser :post="resource" />
|
||||
</masonry-grid-item>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user