Skip to content

Commit

Permalink
chore: replace tag by badge
Browse files Browse the repository at this point in the history
* replaces tag by badge on tabmenu and item.

Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Oct 29, 2024
1 parent a8a9afd commit b2cfd92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<a pRipple class="p-menuitem-link">
<span class="mr-2">{{ item.label }}</span>
@if (item.tag?.statistics && item.tag?.statistics()[item.id] && item.tag?.statistics()[item.id] > 0) {
<p-tag [severity]="item.tag.severity || 'info'" [value]="item.tag.statistics()[item.id] || 0"/>
<p-badge [severity]="item.tag.severity || 'info'" [value]="item.tag.statistics()[item.id] || 0" />
}
</a>
</ng-template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
<!-- position into queue -->
<dt class="offset-1 col-1 label-title" translate>Position</dt>
<dd class="col-10">
<p-tag severity="info">
{{ loan.metadata.rank }} / {{ item.current_pending_requests }}
</p-tag>
<p-badge severity="info" value="{{ loan.metadata.rank }} / {{ item.current_pending_requests }}" />
</dd>
<!-- item location -->
@if (item.location.pid | getRecord: 'locations' | async; as location) {
Expand Down

0 comments on commit b2cfd92

Please sign in to comment.