This commit is contained in:
tiago.kayaya
2021-10-15 16:01:51 +01:00
parent fcd518e8a3
commit db15ad50e0
3 changed files with 32 additions and 30 deletions
@@ -13,7 +13,7 @@
<div class="ion-icon-class"> <div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-description.svg"></ion-icon> <ion-icon slot="start" src="assets/images/icons-description.svg"></ion-icon>
</div> </div>
<div class="ion-input-class flex-grow-1" [class.input-error]="Form?.get('Message')?.invalid && validateFrom "> <div class="ion-input-class flex-grow-1" [class.input-error]="Form?.get('Message')?.invalid && validateFrom || validateField ">
<ion-textarea class="add-border" placeholder="Descrição" [(ngModel)]="postData.DispatchFolder.Message"></ion-textarea> <ion-textarea class="add-border" placeholder="Descrição" [(ngModel)]="postData.DispatchFolder.Message"></ion-textarea>
</div> </div>
</div> </div>
@@ -73,7 +73,8 @@ export class CreateProcessPage implements OnInit {
profile: string; profile: string;
Form: FormGroup; Form: FormGroup;
validateFrom = false validateFrom = false;
validateField = false;
emptyTextDescription = "Sem intervenientes selecionados"; emptyTextDescription = "Sem intervenientes selecionados";
showEmptyContainer = true; showEmptyContainer = true;
@@ -380,6 +381,7 @@ export class CreateProcessPage implements OnInit {
} }
} }
else{ else{
this.validateField = true;
this.toastService.badRequest('Por favor adicione uma nota'); this.toastService.badRequest('Por favor adicione uma nota');
} }
loader.remove(); loader.remove();