Skip to content
Snippets Groups Projects
Commit b2214776 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #15145 TIME 0:20 add note field

parent 4e3f4389
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,17 @@ export class ContactsFormComponent implements OnInit {
filling: false,
values: []
},
{
id: 'notes',
unit: 'mainInfo',
label: this.translate.instant('lang.note'),
type: 'string',
control: new FormControl(),
required: false,
display: false,
filling: false,
values: []
},
{
id: 'addressAdditional1',
unit: 'address',
......
......@@ -84,6 +84,12 @@
</mat-panel-title>
</mat-expansion-panel-header>
<mat-list>
<mat-list-item class="contact-item" *ngIf="!functionsService.empty(contact.notes)"
[title]="this.translate.instant('lang.note')">
<mat-icon mat-list-icon class="contact-group far fa-sticky-note"></mat-icon>
<p mat-line class="contact-content" [class.newData]="isNewValue('notes')" [title]="contact.notes">
{{contact.notes}} </p>
</mat-list-item>
<mat-list-item class="contact-item" *ngIf="!functionsService.empty(contact.communicationMeans)"
[title]="this.translate.instant('lang.communicationMean')">
<mat-icon mat-list-icon class="contact-group fas fa-hashtag"></mat-icon>
......
......@@ -151,7 +151,7 @@ export class ContactDetailComponent implements OnInit {
emptyOtherInfo(contact: any) {
if (contact.type === 'contact' && (!this.functionsService.empty(contact.communicationMeans) || !this.functionsService.empty(contact.customFields))) {
if (contact.type === 'contact' && (!this.functionsService.empty(contact.notes) || !this.functionsService.empty(contact.communicationMeans) || !this.functionsService.empty(contact.customFields))) {
return false;
} else {
return true;
......
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