Skip to content

Commit

Permalink
Restrict filtering to one container type
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiefeiss committed Sep 26, 2023
1 parent 0827b44 commit 1c6e388
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/SearchView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ onMounted(async () => {

<template>
<h1 class="page-title">Search</h1>
<p>Search for items in Prez by using the search field below, or expand to perform a more advanced search.</p>
<p>Search for items in Prez by using the search field below, or expand to perform a more advanced search. Note that you cannot filter by more than one container type for the time being.</p>
<div class="search-form">
<div class="span-x-2">
<div class="top-form-section">
Expand Down Expand Up @@ -669,6 +669,7 @@ onMounted(async () => {
:options="options.containers.catalog"
multiple
clearable
:disabled="data.containers.dataset.length > 0 || data.containers.vocab.length > 0 || data.containers.collection.length > 0"
/>
</div>
</div>
Expand All @@ -692,6 +693,7 @@ onMounted(async () => {
multiple
clearable
flat
:disabled="data.containers.catalog.length > 0 || data.containers.vocab.length > 0 || data.containers.collection.length > 0"
/>
</div>
</div>
Expand All @@ -714,6 +716,7 @@ onMounted(async () => {
:options="options.containers.vocab"
multiple
clearable
:disabled="data.containers.catalog.length > 0 || data.containers.dataset.length > 0 || data.containers.collection.length > 0"
/>
</div>
</div>
Expand All @@ -736,6 +739,7 @@ onMounted(async () => {
:options="options.containers.collection"
multiple
clearable
:disabled="data.containers.catalog.length > 0 || data.containers.dataset.length > 0 || data.containers.vocab.length > 0"
/>
</div>
</div>
Expand Down

0 comments on commit 1c6e388

Please sign in to comment.