[ADF-4096] ProcessCloud/TaskList - undefined filename attribute (#4333)

* [ADF-4127] ProcessServicesCloud - add claim/unclaim directive (#4464)

* [ADF-4127] ProessServicesCloud - claim task directive

* [ADF-4127] - fix doc

* [ADF-4127] - revert docs changes

* [ADF-4127] - revert doc changes

* [ADF-4127] - fix doc and reset sourceLinker.js

* [ADF-4127] - refractor task-cloud.service. add validation for claim/unclaim and fix unit tests

* [ADF-4127] - fix docs files

* [ADF-4127[ - add aditional complete task validation

* [ADF-4127] - PR changes

* [ADF-4127] - complete docs file

* [ADF-4127] - more PR changes

* [ADF-4127] - change Unclaim task name and wait for task to be claimed and unclaimed before emit the success event

* [ADF-4127] - fix unit tests

* [ADF-4095] ProcessCloud - change api response format

* Revert "[ADF-4095] ProcessCloud - change api response format"

This reverts commit 8ddd3477ad3de047911f0538941c65d2bf7e60e2.

* [ADF-4096] DatatableComponent - revert changes and remove filename attribute

* [ADF-4096] - change filename attribute and fix unit tests

* [ADF-4096] - fix core e2e test
This commit is contained in:
Silviu Popa
2019-03-25 18:23:04 +02:00
committed by Eugenio Romano
parent e415bd8cd5
commit c3bbbe6dab
9 changed files with 86 additions and 27 deletions

View File

@@ -90,7 +90,7 @@
role="gridcell"
class=" adf-datatable-cell adf-datatable-cell--{{col.type || 'text'}} {{col.cssClass}}"
[attr.title]="col.title | translate"
[attr.filename]="getFilename(row)"
[attr.data-automation-id]="getAutomationValue(row, col)"
tabindex="0"
(click)="onRowClick(row, $event)"
(keydown.enter)="onEnterKeyPressed(row, $event)"

View File

@@ -599,10 +599,6 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck,
return `${row.cssClass} ${this.rowStyleClass}`;
}
getFilename(row: DataRow): string {
return row.getValue('name');
}
getSortingKey(): string {
if (this.data.getSorting()) {
return this.data.getSorting().key;
@@ -694,4 +690,15 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck,
this.fakeRows = [];
}
}
getNameColumnValue() {
return this.data.getColumns().find( (el: any) => {
return el.key.includes('name');
});
}
getAutomationValue(row: DataRow, col: DataColumn) {
const name = this.getNameColumnValue();
return name ? row.getValue(name.key) : '';
}
}