mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4430] Metadata- fix error message (#4635)
This commit is contained in:
committed by
Eugenio Romano
parent
54adfaa56f
commit
32647c8af5
@@ -87,6 +87,11 @@ export class CardViewTextItemComponent implements OnChanges {
|
||||
reset(): void {
|
||||
this.editedValue = this.property.multiline ? this.property.displayValue : this.property.value;
|
||||
this.setEditMode(false);
|
||||
this.resetErrorMessages();
|
||||
}
|
||||
|
||||
private resetErrorMessages() {
|
||||
this.errorMessages = [];
|
||||
}
|
||||
|
||||
update(): void {
|
||||
@@ -95,6 +100,7 @@ export class CardViewTextItemComponent implements OnChanges {
|
||||
this.cardViewUpdateService.update(this.property, updatedValue);
|
||||
this.property.value = updatedValue;
|
||||
this.setEditMode(false);
|
||||
this.resetErrorMessages();
|
||||
} else {
|
||||
this.errorMessages = this.property.getValidationErrors(this.editedValue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user