Skip to content
Snippets Groups Projects
Commit 0438c885 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12091 TIME 2:00 fix empty contact clickable in basket list

parent ef2deda2
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
padding-left: 5px; padding-left: 5px;
padding-right: 5px;" [class.hasEvent]="data.event" (click)="launchEventSubData(data, row)"> padding-right: 5px;" [class.hasEvent]="data.event && data.displayValue !== this.lang.undefined" (click)="launchEventSubData(data, row)">
<ng-container *ngIf="data.value == 'getCreationAndProcessLimitDates'"> <ng-container *ngIf="data.value == 'getCreationAndProcessLimitDates'">
<ng-container *ngIf="row.closing_date != lang.undefined"> <ng-container *ngIf="row.closing_date != lang.undefined">
<i class="fa fa-lock" title="{{lang.closingDate}}"></i>&nbsp;<span <i class="fa fa-lock" title="{{lang.closingDate}}"></i>&nbsp;<span
......
...@@ -318,8 +318,10 @@ export class BasketListComponent implements OnInit, OnDestroy { ...@@ -318,8 +318,10 @@ export class BasketListComponent implements OnInit, OnDestroy {
if (key.displayValue.length > 1) { if (key.displayValue.length > 1) {
key.displayTitle = key.displayValue.join(' - '); key.displayTitle = key.displayValue.join(' - ');
key.displayValue = '<b>' + key.displayValue.length + '</b> ' + this.lang.contactsAlt; key.displayValue = '<b>' + key.displayValue.length + '</b> ' + this.lang.contactsAlt;
} else { } else if (key.displayValue.length === 1) {
key.displayValue = key.displayValue[0]; key.displayValue = key.displayValue[0];
} else {
key.displayValue = this.lang.undefined;
} }
} else if (key.value === 'getCreationAndProcessLimitDates') { } else if (key.value === 'getCreationAndProcessLimitDates') {
key.icon = ''; key.icon = '';
...@@ -474,7 +476,7 @@ export class BasketListComponent implements OnInit, OnDestroy { ...@@ -474,7 +476,7 @@ export class BasketListComponent implements OnInit, OnDestroy {
launchEventSubData(data: any, row: any) { launchEventSubData(data: any, row: any) {
if (data.event) { if (data.event) {
if (['getSenders', 'getRecipients'].indexOf(data.value) > -1) { if (['getSenders', 'getRecipients'].indexOf(data.value) > -1 && data.displayValue !== this.lang.undefined) {
const mode = data.value === 'getSenders' ? 'senders' : 'recipients'; const mode = data.value === 'getSenders' ? 'senders' : 'recipients';
this.openContact(row, mode); this.openContact(row, mode);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment