[ADF-1921] fixed error message for dynamic table (#2696)

* [ADF-1921] fixed error message for dynamic table

* [ADF-1921] removed console log
This commit is contained in:
Vito
2017-11-22 17:22:52 +00:00
committed by Eugenio Romano
parent 220e14cfcd
commit 01ff35a786
11 changed files with 25 additions and 16 deletions

View File

@@ -179,7 +179,7 @@ export class ActivitiComponent implements AfterViewInit, OnDestroy, OnInit {
const row: DynamicTableRow = e.row;
if (row && row.value && row.value.name === 'admin') {
e.summary.isValid = false;
e.summary.text = 'Sorry, wrong value. You cannot use "admin".';
e.summary.message = 'Sorry, wrong value. You cannot use "admin".';
e.preventDefault();
}
}