Skip to content

Commit

Permalink
Merge branch 'develop' into 179-select-table-columns
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed Nov 5, 2024
2 parents 89df575 + 3bdf226 commit fa6ae01
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions components/explore-samples-form-window-content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,19 @@ const personsFilter = computed(() =>
simpleItems.value
.filter((item) => {
if (!params.value.dataTypes.includes(item.dataType)) return false;
if (persons.value.length > 0)
return item.person.forEach((p) => persons.value.includes(p.name));
else if (places.value.length > 0) {
if (persons.value.length > 0) {
const found = item.person.map((p) => persons.value.includes(p.name));
if (found.includes(true)) return true;
}
if (places.value.length > 0) {
const found = places.value.map((place) => {
const p = place.split(":");
if (p[0] === "region" && item.place.region === p[1]) return true;
if (p[0] === "country" && item.place.country === p[1]) return true;
if (p[0] === item.place.settlement) return true;
return false;
});
if (!found.includes(true)) return false;
if (found.includes(true)) return true;
}
if (sex.value.length > 0) {
if (
Expand Down Expand Up @@ -367,7 +369,7 @@ const openSearchResultsNewWindow = function () {
</button>

<button
class="inline-block h-10 w-full whitespace-nowrap rounded border-2 border-solid border-primary bg-on-primary text-center align-middle font-bold text-primary hover:bg-primary hover:text-on-primary disabled:border-gray-400 disabled:text-gray-400 hover:disabled:bg-on-primary hover:disabled:text-gray-400"
class="mt-2 inline-block h-10 w-full whitespace-nowrap rounded border-2 border-solid border-primary bg-on-primary text-center align-middle font-bold text-primary hover:bg-primary hover:text-on-primary disabled:border-gray-400 disabled:text-gray-400 hover:disabled:bg-on-primary hover:disabled:text-gray-400"
:disabled="
words.length === 0 &&
translation == '' &&
Expand Down

0 comments on commit fa6ae01

Please sign in to comment.