[ADF-4068] ProcessServices/TaskDetails - disable save button on validation errors (#4414)

* [ADF-4068] StartTaskComponent - fix name and description empty space validation

* [ADF-4068] StartTakComponent - add unit test

* [ADF-4068] ProcessServices - add description validaton on edit task form

* [ADF-4068] ProcessServies - fix build issue

* [ADF-4068] ProcessServices - disable save button on validation errors

* [ADF-4068] - lint

* [ADf-4068] - fix e2e
This commit is contained in:
Silviu Popa
2019-03-13 13:56:31 +02:00
committed by Eugenio Romano
parent 3a7376af9f
commit 9c33eeeb81
3 changed files with 26 additions and 7 deletions

View File

@@ -64,8 +64,8 @@ export class CardViewTextItemComponent implements OnChanges {
return !!this.property.icon;
}
hasErrors(): number {
return this.errorMessages && this.errorMessages.length;
hasErrors(): boolean {
return this.errorMessages && this.errorMessages.length > 0;
}
setEditMode(editStatus: boolean): void {
@@ -92,6 +92,10 @@ export class CardViewTextItemComponent implements OnChanges {
}
}
onTextAreaInputChange() {
this.errorMessages = this.property.getValidationErrors(this.editedValue);
}
clicked(): void {
this.cardViewUpdateService.clicked(this.property);
}