mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2238] removed created by property
This commit is contained in:
@@ -41,7 +41,7 @@ The component populates an internal array of
|
|||||||
|
|
||||||
By default all properties are displayed:
|
By default all properties are displayed:
|
||||||
|
|
||||||
***assignee***, ***status***, ***priority***, ***dueDate***, ***category***, ***parentName***, ***created-by***, ***created***, ***id***, ***description***, ***formName***.
|
***assignee***, ***status***, ***priority***, ***dueDate***, ***category***, ***parentName***, ***created***, ***id***, ***description***, ***formName***.
|
||||||
|
|
||||||
However, you can also choose which properties to show using a configuration in `app.config.json`:
|
However, you can also choose which properties to show using a configuration in `app.config.json`:
|
||||||
|
|
||||||
|
@@ -365,7 +365,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"enum": [ "assignee", "status", "priority", "dueDate", "category", "parentName", "created-by", "created", "id", "description", "formName" ]
|
"enum": [ "assignee", "status", "priority", "dueDate", "category", "parentName", "created", "id", "description", "formName" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -114,16 +114,6 @@ describe('TaskHeaderComponent', () => {
|
|||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should display created-by', async(() => {
|
|
||||||
component.refreshData();
|
|
||||||
fixture.detectChanges();
|
|
||||||
|
|
||||||
fixture.whenStable().then(() => {
|
|
||||||
let formNameEl = fixture.debugElement.query(By.css('[data-automation-id="header-created-by"] .adf-property-value'));
|
|
||||||
expect(formNameEl.nativeElement.innerText).toBe('Wilbur Adams');
|
|
||||||
});
|
|
||||||
}));
|
|
||||||
|
|
||||||
it('should display priority', async(() => {
|
it('should display priority', async(() => {
|
||||||
component.taskDetails.priority = 27;
|
component.taskDetails.priority = 27;
|
||||||
component.refreshData();
|
component.refreshData();
|
||||||
|
@@ -124,13 +124,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
|||||||
clickable: true
|
clickable: true
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
new CardViewTextItemModel(
|
|
||||||
{
|
|
||||||
label: 'ADF_TASK_LIST.PROPERTIES.CREATED_BY',
|
|
||||||
value: this.taskDetails.getFullName(),
|
|
||||||
key: 'created-by'
|
|
||||||
}
|
|
||||||
),
|
|
||||||
new CardViewDateItemModel(
|
new CardViewDateItemModel(
|
||||||
{
|
{
|
||||||
label: 'ADF_TASK_LIST.PROPERTIES.CREATED',
|
label: 'ADF_TASK_LIST.PROPERTIES.CREATED',
|
||||||
|
Reference in New Issue
Block a user