Skip to content
Snippets Groups Projects
Commit 5c107103 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #13274 TIME 1:15 recipient address switch to manual mode

parent d53f7a69
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@
</mat-option>
</mat-autocomplete>
</mat-form-field>
<mat-card color="primary" *ngIf="manualAddress && !emptyAddress()">
<a *ngIf="!manualAddress && emptyAddress()" (click)="manualAddress=!manualAddress" style="cursor: pointer;">{{'lang.switchManualAddress' | translate}}</a>
<mat-card color="primary" *ngIf="manualAddress">
<button mat-icon-button class="address-icon" (click)="manualAddress=!manualAddress"
[title]="'lang.showAddress' | translate">
<mat-icon class="fa fa-eye"></mat-icon>
......@@ -96,7 +97,7 @@
</mat-autocomplete>
</mat-form-field>
</mat-card>
<mat-card color="primary" *ngIf="!manualAddress && !emptyAddress()">
<mat-card color="primary" *ngIf="!manualAddress && !emptyAddress()" style="min-height: 60px">
<button *ngIf="this.control.status !== 'DISABLED'" mat-icon-button class="address-icon"
(click)="manualAddress=!manualAddress" [title]="'lang.update' | translate">
<mat-icon class="fa fa-edit"></mat-icon>
......
......@@ -167,7 +167,7 @@ export class RegisteredMailRecipientInputComponent implements OnInit {
emptyAddress() {
let state: boolean = true;
Object.keys(this.control.value).forEach(key => {
if (this.control.value[key] !== '') {
if (!this.functions.empty(this.control.value[key])) {
state = false;
}
});
......
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