Skip to content

Commit

Permalink
hide persons caption when project data has empty fullname field and a…
Browse files Browse the repository at this point in the history
…dd missing translation
  • Loading branch information
konolak committed Jan 21, 2025
1 parent ee45ff4 commit fcd5267
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ <h3>{{row.subFields[1].label}}</h3>
</ng-container>
</div>
</div>
<h3 *ngIf="item['responsiblePerson']?.length > 0">{{row.subFields[2].label}}</h3>
<ng-container *ngFor="let person of item['responsiblePerson']">
<ng-container *ngFor="let person of item['responsiblePerson']; let i = index">
<h3 *ngIf="i === 0 && item['responsiblePerson']?.length > 0 && person.fullName.length > 0">{{row.subFields[2].label}}</h3>
<div>
{{ person.fullName }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/messages.sv.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -4247,7 +4247,7 @@
</trans-unit>
<trans-unit id="projectSource" datatype="html">
<source>Hanketiedon lähde</source>
<target>Hanketiedon lähde</target>
<target>Projektinformationens källa</target>
</trans-unit>
<trans-unit id="spAbbreviation" datatype="html">
<source>Lyhenne</source>
Expand Down

0 comments on commit fcd5267

Please sign in to comment.