diff --git a/src/frontend/app/administration/contact/page/form/contacts-form.component.ts b/src/frontend/app/administration/contact/page/form/contacts-form.component.ts index d0cf475706174c6c434c4dbd0a665907c58e4cc6..e3c67d12f202ddb9b658f744afc3f136b54889f9 100644 --- a/src/frontend/app/administration/contact/page/form/contacts-form.component.ts +++ b/src/frontend/app/administration/contact/page/form/contacts-form.component.ts @@ -161,6 +161,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', diff --git a/src/frontend/app/contact/contact-detail/contact-detail.component.html b/src/frontend/app/contact/contact-detail/contact-detail.component.html index ba3150c0b3778c80e7c0f87f951d425b82cae40c..ce41c893c12d4e4f60703e562ddced0442ded449 100644 --- a/src/frontend/app/contact/contact-detail/contact-detail.component.html +++ b/src/frontend/app/contact/contact-detail/contact-detail.component.html @@ -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]="lang.communicationMean"> <mat-icon mat-list-icon class="contact-group fas fa-hashtag"></mat-icon> diff --git a/src/frontend/app/contact/contact-detail/contact-detail.component.ts b/src/frontend/app/contact/contact-detail/contact-detail.component.ts index be6bcab58513f29c7fec07490681ab1e07d6873e..f4e0c0a99814cebf3da605053a425a280cf46c33 100644 --- a/src/frontend/app/contact/contact-detail/contact-detail.component.ts +++ b/src/frontend/app/contact/contact-detail/contact-detail.component.ts @@ -150,7 +150,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;