Commit 0924f468 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #14367 TIME 0:10 set default entity mail

parent 7cbc672e
......@@ -440,7 +440,7 @@ export class SentResourcePageComponent implements OnInit {
setDefaultInfo() {
this.emailsubject = `[${this.resourceData.chrono}] ${this.resourceData.subject}`;
this.emailsubject = this.emailsubject.substring(0, 70);
this.currentSender = this.availableSenders[0];
this.currentSender = this.availableSenders.filter(sender => !this.functions.empty(sender.entityId)).length > 0 ? this.availableSenders.filter(sender => !this.functions.empty(sender.entityId))[0] : this.availableSenders[0];
if (!this.functions.empty(this.resourceData.senders)) {
this.resourceData.senders.forEach((sender: any) => {
this.setSender(sender.id);
......
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