Skip to content

Commit

Permalink
[DSC-2052] remove nfIf directive from template
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMolinaro committed Nov 27, 2024
1 parent 4f8a1ac commit 2dbe9f9
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@

@if (attachmentConf.type === AdvancedAttachmentElementType.Metadata) {

<p class="text-break m-0" *ngIf="!attachmentConf.truncatable && attachmentConf.name === attachmentTypeMetadata">
{{attachment.firstMetadataValue(attachmentConf.name) | titlecase}}
</p>
@if(!attachmentConf.truncatable && attachmentConf.name === attachmentTypeMetadata) {
<p class="text-break m-0">
{{attachment.firstMetadataValue(attachmentConf.name) | titlecase}}
</p>
}

<p class="text-break m-0" *ngIf="!attachmentConf.truncatable && attachmentConf.name !== attachmentTypeMetadata">
{{attachment.firstMetadataValue(attachmentConf.name)}}
</p>
@if(!attachmentConf.truncatable && attachmentConf.name !== attachmentTypeMetadata) {
<p class="text-break m-0">
{{attachment.firstMetadataValue(attachmentConf.name)}}
</p>
}

@if (attachmentConf.truncatable) {
<ds-truncatable [id]=" attachment.id">
Expand Down

0 comments on commit 2dbe9f9

Please sign in to comment.