Skip to content

Commit

Permalink
Fix item count label when changing language
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonia Lahcene committed Jan 15, 2020
1 parent c499b6a commit 40d461d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="info jhi-item-count">
<span v-if="i18nEnabled"
v-bind:html="$t('global.item-count')">Showing {{first}} - {{second}} of {{total}} items.</span>
v-text="$t('global.item-count', {first, second, total })">Showing {{first}} - {{second}} of {{total}} items.</span>
<span v-if="!i18nEnabled">
Showing {{((page - 1) * itemsPerPage) === 0 ? 1 : ((page - 1) * itemsPerPage + 1)}} -
{{(page * itemsPerPage) < total ? (page * itemsPerPage) : total}}
Expand Down

0 comments on commit 40d461d

Please sign in to comment.