Skip to content
Snippets Groups Projects
Commit 29d2f6ec authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

fix(structures):remove unknow@unknown.com as contact emails

parent 62b0a5bf
No related branches found
No related tags found
2 merge requests!480V2.2.0,!475Resolve "[Tech] front - remplacer par une chaine vide les emails des structures APTIC (au lieu de unknown@unknown.com )"
...@@ -96,11 +96,7 @@ ...@@ -96,11 +96,7 @@
<div class="sectionContent infoSection"> <div class="sectionContent infoSection">
<p>{{ getAddress() }}</p> <p>{{ getAddress() }}</p>
<p>{{ structure.contactPhone }}</p> <p>{{ structure.contactPhone }}</p>
<a <a *ngIf="structure.contactMail" class="email" href="mailto:{{ structure.contactMail }}">
*ngIf="structure.contactMail !== 'unknown@unknown.com'"
class="email"
href="mailto:{{ structure.contactMail }}"
>
{{ structure.contactMail }} {{ structure.contactMail }}
</a> </a>
</div> </div>
......
...@@ -20,12 +20,7 @@ ...@@ -20,12 +20,7 @@
<app-svg-icon [type]="'ico'" [icon]="'tel'" [title]="'Téléphone'" [iconClass]="'icon-22'" /> <app-svg-icon [type]="'ico'" [icon]="'tel'" [title]="'Téléphone'" [iconClass]="'icon-22'" />
<p>{{ structure.contactPhone | phone }}</p> <p>{{ structure.contactPhone | phone }}</p>
</div> </div>
<div <div *ngIf="structure.contactMail" fxLayout="row" fxLayoutAlign="none center" fxLayoutGap="13px">
*ngIf="structure.contactMail && structure.contactMail !== 'unknown@unknown.com'"
fxLayout="row"
fxLayoutAlign="none center"
fxLayoutGap="13px"
>
<app-svg-icon [type]="'ico'" [iconClass]="'grey-1 icon-22'" [icon]="'email'" [title]="'Email'" /> <app-svg-icon [type]="'ico'" [iconClass]="'grey-1 icon-22'" [icon]="'email'" [title]="'Email'" />
<p>{{ structure.contactMail }}</p> <p>{{ structure.contactMail }}</p>
</div> </div>
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
<div *ngIf="structure.contactPhone"> <div *ngIf="structure.contactPhone">
{{ structure.contactPhone | phone }} {{ structure.contactPhone | phone }}
</div> </div>
<div *ngIf="structure.contactMail && structure.contactMail !== 'unknown@unknown.com'"> <div *ngIf="structure.contactMail">
<a href="mailto:{{ structure.contactMail }}">{{ structure.contactMail }}</a> <a href="mailto:{{ structure.contactMail }}">{{ structure.contactMail }}</a>
</div> </div>
</div> </div>
......
...@@ -81,7 +81,7 @@ export class formUtils { ...@@ -81,7 +81,7 @@ export class formUtils {
commune: new UntypedFormControl(structure.address.commune, Validators.required), commune: new UntypedFormControl(structure.address.commune, Validators.required),
}), }),
contactMail: new UntypedFormControl( contactMail: new UntypedFormControl(
structure.contactMail === 'unknown@unknown.com' ? null : structure.contactMail, structure.contactMail === '' ? null : structure.contactMail,
!isEditMode !isEditMode
? [Validators.required, Validators.pattern(CustomRegExp.EMAIL)] ? [Validators.required, Validators.pattern(CustomRegExp.EMAIL)]
: [Validators.pattern(CustomRegExp.EMAIL)] : [Validators.pattern(CustomRegExp.EMAIL)]
......
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