Commit cf89362b authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #18428 TIME 0:15 sent numeric package: display communicationMean

parent 0310509c
......@@ -32,8 +32,8 @@
<div>
{{recipient.label}} - <b>{{recipient.m2m}}</b>
</div>
<div class="attachLabel">
({{'lang.communicationMean' | translate}} : {{recipient.communicationMeans}})
<div *ngIf="!functions.empty(recipient.communicationMeans.url) || functions.empty(recipient.communicationMeans.login)" class="attachLabel">
({{'lang.communicationMean' | translate}} : {{getCommunicationMean(recipient.communicationMeans)}})
</div>
</span>
<mat-icon matChipRemove class="fa fa-times" *ngIf="canManageMail()"></mat-icon>
......
......@@ -546,4 +546,12 @@ export class SentNumericPackagePageComponent implements OnInit {
canSendNumericPackage() {
return this.privilegeService.getCurrentUserMenus().filter((item: any) => item.id === 'manage_numeric_package').length > 0;
}
getCommunicationMean(value: any) {
if (!this.functions.empty(value.url)) {
return value.url;
} else if (!this.functions.empty(value.email)) {
return value.email;
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment