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 (#3380)
* [ADF-2238] removed created by property
* [ADF-2238] added a condition to avoid checklist delete for completed task
* Revert "[ADF-2238] added a condition to avoid checklist delete for completed task"
This reverts commit fc2227ea04
.
This commit is contained in:
@@ -41,7 +41,7 @@ The component populates an internal array of
|
||||
|
||||
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`:
|
||||
|
||||
|
@@ -365,7 +365,7 @@
|
||||
"properties": {
|
||||
"type": "array",
|
||||
"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(() => {
|
||||
component.taskDetails.priority = 27;
|
||||
component.refreshData();
|
||||
|
@@ -124,13 +124,6 @@ export class TaskHeaderComponent implements OnChanges, OnInit {
|
||||
clickable: true
|
||||
}
|
||||
),
|
||||
new CardViewTextItemModel(
|
||||
{
|
||||
label: 'ADF_TASK_LIST.PROPERTIES.CREATED_BY',
|
||||
value: this.taskDetails.getFullName(),
|
||||
key: 'created-by'
|
||||
}
|
||||
),
|
||||
new CardViewDateItemModel(
|
||||
{
|
||||
label: 'ADF_TASK_LIST.PROPERTIES.CREATED',
|
||||
|
Reference in New Issue
Block a user