mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[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:
committed by
Eugenio Romano
parent
3a7376af9f
commit
9c33eeeb81
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user