mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3596] process-header change assignee property key to createdBy (#5854)
* [ACA-3596] process-header change assignee property key to createdBy * Fix unit test
This commit is contained in:
@@ -32,7 +32,7 @@ Sub-component of the process details component, which renders some general infor
|
||||
### Choosing which properties are displayed
|
||||
|
||||
By default all the properties are displayed:
|
||||
**_status_**, **_ended_**, **_category_**, **_businessKey_**, **_assignee_**, **_created_**,**_id_**, **_description_**.
|
||||
**_status_**, **_ended_**, **_category_**, **_businessKey_**, **_createdBy_**, **_created_**,**_id_**, **_description_**.
|
||||
|
||||
You can customize which properties are displayed using a setting in `app.config.json`.
|
||||
The configuration looks like the following sample:
|
||||
|
@@ -959,7 +959,7 @@
|
||||
"ended",
|
||||
"category",
|
||||
"businessKey",
|
||||
"assignee",
|
||||
"createdBy",
|
||||
"created",
|
||||
"id",
|
||||
"description"
|
||||
|
@@ -117,7 +117,7 @@ describe('ProcessInstanceHeaderComponent', () => {
|
||||
component.ngOnChanges();
|
||||
fixture.detectChanges();
|
||||
await fixture.whenStable();
|
||||
const valueEl = fixture.nativeElement.querySelector('[data-automation-id="card-textitem-value-assignee"]');
|
||||
const valueEl = fixture.nativeElement.querySelector('[data-automation-id="card-textitem-value-createdBy"]');
|
||||
expect(valueEl.value).toBe('Admin User');
|
||||
});
|
||||
|
||||
|
@@ -87,7 +87,7 @@ export class ProcessInstanceHeaderComponent implements OnChanges {
|
||||
{
|
||||
label: 'ADF_PROCESS_LIST.PROPERTIES.CREATED_BY',
|
||||
value: this.getStartedByFullName(),
|
||||
key: 'assignee',
|
||||
key: 'createdBy',
|
||||
default: this.translationService.instant('ADF_PROCESS_LIST.PROPERTIES.CREATED_BY_DEFAULT')
|
||||
}),
|
||||
new CardViewDateItemModel(
|
||||
|
Reference in New Issue
Block a user