Skip to content

Commit

Permalink
fix(ui): handle article count
Browse files Browse the repository at this point in the history
  • Loading branch information
RitvikSardana committed Jan 6, 2025
1 parent 06fb127 commit ffadbdc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions desk/src/components/ListRows.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@
<div v-if="group.group.label == ''" class="text-ink-gray-4">
{{ "Empty" }}
<span class="text-xs text-ink-gray-6"
>{{ group.rows.length + " Articles" }}
>{{
group.rows.length +
" Article" +
(group.rows.length > 1 ? "s" : "")
}}
</span>
</div>
<div v-else class="flex items-center gap-1 w-full">
<span>{{ group.group.label }}</span>
<span class="text-xs text-ink-gray-6"
>{{ group.rows.length + " Articles" }}
>{{
group.rows.length +
" Article" +
(group.rows.length > 1 ? "s" : "")
}}
</span>
</div>
</div>
Expand Down

0 comments on commit ffadbdc

Please sign in to comment.