Skip to content

Commit

Permalink
fix(NcListItem): change condition to display the counter number accor…
Browse files Browse the repository at this point in the history
…ding to the doc, previous condition was always showing it

Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Sep 23, 2024
1 parent 833ac5b commit 1aade62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,10 @@ The `actions-icon` slot can be used to pass icon to the inner NcActions componen
<slot name="details">{{ details }}</slot>
</div>
<!-- Counter and indicator -->
<div v-if="counterNumber !== undefined || hasIndicator"
<div v-if="counterNumber !== 0 || hasIndicator"
v-show="showAdditionalElements"
class="list-item-details__extra">
<NcCounterBubble v-if="counterNumber !== undefined"
<NcCounterBubble v-if="counterNumber !== 0"
:count="counterNumber"
:active="isActive || active"
class="list-item-details__counter"
Expand Down

0 comments on commit 1aade62

Please sign in to comment.