[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:
arditdomi
2020-07-13 15:34:01 +01:00
committed by GitHub
parent 1f58c2d64b
commit 50daa0ef7b
4 changed files with 4 additions and 4 deletions

View File

@@ -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:

View File

@@ -959,7 +959,7 @@
"ended",
"category",
"businessKey",
"assignee",
"createdBy",
"created",
"id",
"description"

View File

@@ -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');
});

View File

@@ -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(