mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4028][ADF-4047]Add process list cloud selection tests (#4537)
* Add process list cloud selection tests * Fix lint issues * Fix lint issues * Added columns to contentServicesPage * Fix lint error. * Add the possibility to test the selection mode for process details.
This commit is contained in:
committed by
Eugenio Romano
parent
453415d73b
commit
f2c954d911
@@ -53,6 +53,7 @@ export class ProcessesCloudDemoComponent implements OnInit {
|
||||
selectedRows: string[] = [];
|
||||
testingMode: boolean;
|
||||
processFilterProperties: any = { filterProperties: [], sortProperties: [], actions: [] };
|
||||
processDetailsRedirection: boolean;
|
||||
|
||||
editedFilter: ProcessFilterCloudModel;
|
||||
|
||||
@@ -89,6 +90,7 @@ export class ProcessesCloudDemoComponent implements OnInit {
|
||||
this.multiselect = settings.multiselect;
|
||||
this.testingMode = settings.testingMode;
|
||||
this.selectionMode = settings.selectionMode;
|
||||
this.processDetailsRedirection = settings.processDetailsRedirection;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +103,9 @@ export class ProcessesCloudDemoComponent implements OnInit {
|
||||
}
|
||||
|
||||
onRowClick(processInstanceId) {
|
||||
this.router.navigate([`/cloud/${this.appName}/process-details/${processInstanceId}`]);
|
||||
if (!this.multiselect && this.selectionMode !== 'multiple' && this.processDetailsRedirection) {
|
||||
this.router.navigate([`/cloud/${this.appName}/process-details/${processInstanceId}`]);
|
||||
}
|
||||
}
|
||||
|
||||
onFilterChange(query: any) {
|
||||
|
Reference in New Issue
Block a user