Fixed actor countries filter disappearing if no countries are found.
This commit is contained in:
parent
55680b5150
commit
e4f410f293
|
@ -1,6 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="filteredCountries.length > 0"
|
|
||||||
class="countries-container"
|
class="countries-container"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
|
@ -11,7 +10,10 @@
|
||||||
class="input input-inline countries-search"
|
class="input input-inline countries-search"
|
||||||
>
|
>
|
||||||
|
|
||||||
<div class="countries-list">
|
<div
|
||||||
|
v-if="filteredCountries.length > 0"
|
||||||
|
class="countries-list"
|
||||||
|
>
|
||||||
<Countries
|
<Countries
|
||||||
v-if="!countryQuery && !filters.country && topCountries.length < filteredCountries.length"
|
v-if="!countryQuery && !filters.country && topCountries.length < filteredCountries.length"
|
||||||
:countries="topCountries"
|
:countries="topCountries"
|
||||||
|
@ -25,6 +27,10 @@
|
||||||
@country="(alpha2) => emit('update', 'country', alpha2, true)"
|
@country="(alpha2) => emit('update', 'country', alpha2, true)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="empty">
|
||||||
|
No matching countries
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -75,6 +81,12 @@ const filteredCountries = computed(() => allCountries.value.filter((country) =>
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty {
|
||||||
|
padding: .5rem;
|
||||||
|
color: var(--glass);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
:deep(.country.selected) .country-name {
|
:deep(.country.selected) .country-name {
|
||||||
padding: .5rem;
|
padding: .5rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,14 +75,12 @@ const networksBySlug = Object.fromEntries(networks.map((network) => [network.slu
|
||||||
const popularNetworks = [
|
const popularNetworks = [
|
||||||
'21sextury',
|
'21sextury',
|
||||||
'adulttime',
|
'adulttime',
|
||||||
'amateurallure',
|
|
||||||
'analvids',
|
'analvids',
|
||||||
'bamvisions',
|
'bamvisions',
|
||||||
'bang',
|
'bang',
|
||||||
'bangbros',
|
'bangbros',
|
||||||
'blowpass',
|
'blowpass',
|
||||||
'brazzers',
|
'brazzers',
|
||||||
'burningangel',
|
|
||||||
'digitalplayground',
|
'digitalplayground',
|
||||||
'dogfartnetwork',
|
'dogfartnetwork',
|
||||||
'dorcel',
|
'dorcel',
|
||||||
|
@ -102,6 +100,7 @@ const popularNetworks = [
|
||||||
'pornworld',
|
'pornworld',
|
||||||
'private',
|
'private',
|
||||||
'realitykings',
|
'realitykings',
|
||||||
|
'rickysroom',
|
||||||
'teamskeet',
|
'teamskeet',
|
||||||
'vixen',
|
'vixen',
|
||||||
'xempire',
|
'xempire',
|
||||||
|
|
Loading…
Reference in New Issue