forked from DebaucheryLibrarian/traxxx
Hiding empty search sections.
This commit is contained in:
parent
8641651a55
commit
772fef5ff8
|
@ -5,33 +5,32 @@
|
||||||
class="summary"
|
class="summary"
|
||||||
>Searching...</span>
|
>Searching...</span>
|
||||||
|
|
||||||
<span
|
<template v-if="!loader && actors.length > 0">
|
||||||
v-if="!loading"
|
<span class="summary">Found {{ actors.length }} actors for '{{ query }}'</span>
|
||||||
class="summary"
|
|
||||||
>Found {{ actors.length }} actors for '{{ query }}'</span>
|
|
||||||
|
|
||||||
<div
|
<div class="tiles">
|
||||||
v-if="!loading && actors.length > 0"
|
<Actor
|
||||||
class="tiles"
|
v-for="actor in actors"
|
||||||
>
|
:key="`actor-${actor.id}`"
|
||||||
<Actor
|
:actor="actor.aliasFor || actor"
|
||||||
v-for="actor in actors"
|
:alias="actor.aliasFor && actor"
|
||||||
:key="`actor-${actor.id}`"
|
/>
|
||||||
:actor="actor.aliasFor || actor"
|
</div>
|
||||||
:alias="actor.aliasFor && actor"
|
</template>
|
||||||
|
|
||||||
|
<template v-if="!loader && releases.length > 0">
|
||||||
|
<span class="summary">Found {{ releases.length }} releases for '{{ query }}'</span>
|
||||||
|
|
||||||
|
<Releases
|
||||||
|
class="embedded"
|
||||||
|
:releases="releases"
|
||||||
/>
|
/>
|
||||||
</div>
|
</template>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
v-if="!loading"
|
v-if="!loading && actors.length === 0 && releases.length === 0"
|
||||||
class="summary"
|
class="summary"
|
||||||
>Found {{ releases.length }} releases for '{{ query }}'</span>
|
>No results</span>
|
||||||
|
|
||||||
<Releases
|
|
||||||
v-if="!loading && releases.length > 0"
|
|
||||||
class="embedded"
|
|
||||||
:releases="releases"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue