Skip to content

Commit

Permalink
[DSC-1945] Show container div only when there are message to show, in…
Browse files Browse the repository at this point in the history
… order to not show empty gap in the item page
  • Loading branch information
atarix83 committed Nov 6, 2024
1 parent 640bf63 commit f4b7a61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/item-page/alerts/item-alerts.component.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="py-3">
<div *ngIf="item && !item.isDiscoverable" class="private-warning">
<div *ngIf="item && (!item.isDiscoverable || item.isWithdrawn)" class="pb-3">
<div *ngIf="!item.isDiscoverable" class="private-warning">
<ds-alert [type]="AlertTypeEnum.Warning" [content]="'item.alerts.private' | translate"></ds-alert>
</div>
<div *ngIf="item && item.isWithdrawn" class="withdrawn-warning">
<div *ngIf="item.isWithdrawn" class="withdrawn-warning">
<ds-alert [type]="AlertTypeEnum.Warning">
<div class="d-flex justify-content-between flex-wrap flex-column">
<span class="align-self-center">{{'item.alerts.withdrawn' | translate}}</span>
Expand Down

0 comments on commit f4b7a61

Please sign in to comment.