Skip to content
Snippets Groups Projects
Verified Commit 7e7eec78 authored by Damien's avatar Damien
Browse files

FEAT #12072 TIME 0:15 Fix empty object email summary

parent ec0406b0
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ import { LANG } from '../../translate.component'; ...@@ -4,6 +4,7 @@ import { LANG } from '../../translate.component';
import { catchError, tap, finalize, map } from 'rxjs/operators'; import { catchError, tap, finalize, map } from 'rxjs/operators';
import { of } from 'rxjs'; import { of } from 'rxjs';
import { NotificationService } from '../../notification.service'; import { NotificationService } from '../../notification.service';
import {FunctionsService} from "../../../service/functions.service";
@Component({ @Component({
...@@ -28,6 +29,7 @@ export class MailResumeComponent implements OnInit { ...@@ -28,6 +29,7 @@ export class MailResumeComponent implements OnInit {
constructor( constructor(
public http: HttpClient, public http: HttpClient,
private notify: NotificationService, private notify: NotificationService,
public functions: FunctionsService
) { ) {
} }
...@@ -43,10 +45,10 @@ export class MailResumeComponent implements OnInit { ...@@ -43,10 +45,10 @@ export class MailResumeComponent implements OnInit {
data.elementsSend = data.elementsSend.map((elem: any) => { data.elementsSend = data.elementsSend.map((elem: any) => {
let object = elem.object; let object = elem.object;
let type = elem.type; let type = elem.type;
if (elem.object === '') { if (elem.type == 'aknowledgement_receipt' && this.functions.empty(elem.object)) {
object = this.lang.ARPaper; object = this.lang.ARPaper;
type = 'aknowledgement_receipt'; type = 'aknowledgement_receipt';
} else if (elem.object.startsWith("[AR]")) { } else if (elem.type == 'aknowledgement_receipt' && elem.object.startsWith("[AR]")) {
object = this.lang.ARelectronic; object = this.lang.ARelectronic;
type = 'aknowledgement_receipt'; type = 'aknowledgement_receipt';
} }
...@@ -75,4 +77,4 @@ export class MailResumeComponent implements OnInit { ...@@ -75,4 +77,4 @@ export class MailResumeComponent implements OnInit {
showMore() { showMore() {
this.goTo.emit(); this.goTo.emit();
} }
} }
\ No newline at end of file
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