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