Skip to content

Commit

Permalink
item: conditional renewal badges.
Browse files Browse the repository at this point in the history
The renewal badges should not be displayed when a checkin action in done
on the corresponding item. This commit change the behavior of this badge
to be conditional depending if a 'checkin' action is done on the item.

Closes rero/rero-ils#797

Co-Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
  • Loading branch information
zannkukai committed Aug 19, 2020
1 parent 4363c38 commit 5361678
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<!-- RENEWALS, FEES, REQUESTS -->
<li>
<span title="{{ 'Renewals' | translate }}" class="badge badge-secondary font-weight-normal mr-1"
*ngIf="item.loan && item.loan.extension_count">
*ngIf="item.loan && item.loan.extension_count && (!item.actionDone || item.actionDone !== itemAction.checkin)">
{{ item.loan.extension_count }} <i class="fa fa-refresh"></i>
</span>
<span title="{{ 'Fees' | translate }}" class="badge badge-warning font-weight-normal mr-1"
Expand Down

0 comments on commit 5361678

Please sign in to comment.