Skip to content

Commit

Permalink
Properly disable dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Mar 23, 2021
1 parent 8bee8b4 commit 77e08c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/documents/utils/QueryItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
<div>
<query-item v-if="fields.title" :field="fields.title" class="title-input is-hidden-mobile" hide-label />

<dropdown-button v-for="category of categorizedFields" :key="category.name" class="category-button">
<dropdown-button
v-for="category of categorizedFields"
:key="category.name"
class="category-button"
:disabled="category.fields.length === 0"
>
<span slot="button" class="button is-small-mobile" :disabled="category.fields.length === 0">
<fa-icon :icon="$options.categoryIcon[category.name]" />
<span class="is-hidden-mobile">
Expand Down

0 comments on commit 77e08c2

Please sign in to comment.