fix: hide empty repositories when SHOW_CATALOG_NB_TAGS is active (#299)

fixes #299
This commit is contained in:
Joxit 2023-04-30 23:06:42 +02:00
parent 43a242312c
commit b0811086fd
No known key found for this signature in database
GPG key ID: F526592B8E012263

View file

@ -20,7 +20,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class="content"
if="{!props.filterResults || state.nImages > 0 || matchSearch(props.filterResults, state.image)}"
>
<material-card class="list highlight" expanded="{state.expanded}" onclick="{ onClick }">
<material-card
class="list highlight"
expanded="{state.expanded}"
onclick="{ onClick }"
if="{ !props.showCatalogNbTags || state.nbTags !== 0 }"
>
<a if="{ state.image }" href="{ router.taglist(state.image) }">
<material-waves center="true" color="#ddd"></material-waves>
</a>