mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1712] The <adf-task-header component displays a Requeue button for none pooled tasks (#2680)
* [ADF-1712] The <adf-task-header component displays a Requeue button for none pooled tasks . * Refactored task header component. * [ADF-1712]The <adf-task-header component displays a Requeue button for none pooled tasks. * Refactored task header component. * Added test cases. * [ADF-1712] The <adf-task-header component displays a Requeue button for none pooled tasks. * Changed method name .
This commit is contained in:
committed by
Eugenio Romano
parent
3ccccbec4e
commit
7cf0a1c839
@@ -52,28 +52,7 @@ export let taskDetailsMock = new TaskDetailsModel({
|
||||
'memberOfCandidateGroup': false
|
||||
});
|
||||
|
||||
export let completedTaskDetailsMock = new TaskDetailsModel({
|
||||
'id': '91',
|
||||
'name': 'Request translation',
|
||||
'description': null,
|
||||
'category': null,
|
||||
'assignee': {'id': 1001, 'firstName': 'Wilbur', 'lastName': 'Adams', 'email': 'wilbur@app.activiti.com'},
|
||||
'created': '2016-11-03T15:25:42.749+0000',
|
||||
'dueDate': null,
|
||||
'endDate': '2016-11-03T15:25:42.749+0000',
|
||||
'duration': null,
|
||||
'priority': 50,
|
||||
'parentTaskId': null,
|
||||
'parentTaskName': null,
|
||||
'processInstanceId': '86',
|
||||
'processInstanceName': null,
|
||||
'processDefinitionId': 'TranslationProcess:2:8',
|
||||
'processDefinitionName': 'Translation Process',
|
||||
'involvedGroups': [],
|
||||
'involvedPeople': []
|
||||
});
|
||||
|
||||
export let taskDetailsWithOutAssigneeMock = new TaskDetailsModel({
|
||||
export let claimableTaskDetailsMock = new TaskDetailsModel({
|
||||
'id': '91',
|
||||
'name': 'Request translation',
|
||||
'description': null,
|
||||
@@ -92,10 +71,13 @@ export let taskDetailsWithOutAssigneeMock = new TaskDetailsModel({
|
||||
'processDefinitionName': 'Translation Process',
|
||||
'involvedGroups': [{'id': 7007, 'name': 'group1', 'externalId': null, 'status': 'active', 'groups': null},
|
||||
{'id': 8008, 'name': 'group2', 'externalId': null, 'status': 'active', 'groups': null}],
|
||||
'involvedPeople': []
|
||||
'involvedPeople': [],
|
||||
'managerOfCandidateGroup': true,
|
||||
'memberOfCandidateGroup': true,
|
||||
'memberOfCandidateUsers': false
|
||||
});
|
||||
|
||||
export let taskDetailsWithInvolvedGroupMock = new TaskDetailsModel({
|
||||
export let claimedTaskDetailsMock = new TaskDetailsModel({
|
||||
'id': '91',
|
||||
'name': 'Request translation',
|
||||
'description': null,
|
||||
@@ -112,34 +94,15 @@ export let taskDetailsWithInvolvedGroupMock = new TaskDetailsModel({
|
||||
'processInstanceName': null,
|
||||
'processDefinitionId': 'TranslationProcess:2:8',
|
||||
'processDefinitionName': 'Translation Process',
|
||||
'involvedGroups': [{'id': 7007, 'name': 'group1', 'externalId': null, 'status': 'active', 'groups': null},
|
||||
{'id': 8008, 'name': 'group2', 'externalId': null, 'status': 'active', 'groups': null}],
|
||||
'involvedPeople': []
|
||||
});
|
||||
|
||||
export let taskDetailsWithInvolvedPeopleMock = new TaskDetailsModel({
|
||||
'id': '91',
|
||||
'name': 'Request translation',
|
||||
'description': null,
|
||||
'category': null,
|
||||
'assignee': {'id': 1001, 'firstName': 'Wilbur', 'lastName': 'Adams', 'email': 'wilbur@app.activiti.com'},
|
||||
'created': '2016-11-03T15:25:42.749+0000',
|
||||
'dueDate': null,
|
||||
'endDate': null,
|
||||
'duration': null,
|
||||
'priority': 50,
|
||||
'parentTaskId': null,
|
||||
'parentTaskName': null,
|
||||
'processInstanceId': '86',
|
||||
'processInstanceName': null,
|
||||
'processDefinitionId': 'TranslationProcess:2:8',
|
||||
'processDefinitionName': 'Translation Process',
|
||||
'involvedGroups': [],
|
||||
'involvedGroups': [{'id': 7007, 'name': 'group1', 'externalId': null, 'status': 'active', 'groups': null}],
|
||||
'involvedPeople': [{'id': 1001, 'firstName': 'Wilbur', 'lastName': 'Adams', 'email': 'wilbur@app.activiti.com'},
|
||||
{'id': 111, 'firstName': 'fake-first-name', 'lastName': 'fake-last-name', 'email': 'fake@app.activiti.com'}]
|
||||
{'id': 111, 'firstName': 'fake-first-name', 'lastName': 'fake-last-name', 'email': 'fake@app.activiti.com'}],
|
||||
'managerOfCandidateGroup': true,
|
||||
'memberOfCandidateGroup': true,
|
||||
'memberOfCandidateUsers': true
|
||||
});
|
||||
|
||||
export let taskDetailsWithAssigneeMock = new TaskDetailsModel({
|
||||
export let claimedByGroupMemberMock = new TaskDetailsModel({
|
||||
'id': '91',
|
||||
'name': 'Request translation',
|
||||
'description': null,
|
||||
@@ -156,11 +119,63 @@ export let taskDetailsWithAssigneeMock = new TaskDetailsModel({
|
||||
'processInstanceName': null,
|
||||
'processDefinitionId': 'TranslationProcess:2:8',
|
||||
'processDefinitionName': 'Translation Process',
|
||||
'involvedGroups': [{'id': 7007, 'name': 'group1', 'externalId': null, 'status': 'active', 'groups': null}],
|
||||
'involvedPeople': [{'id': 1001, 'firstName': 'Wilbur', 'lastName': 'Adams', 'email': 'wilbur@app.activiti.com'},
|
||||
{'id': 111, 'firstName': 'fake-first-name', 'lastName': 'fake-last-name', 'email': 'fake@app.activiti.com'}],
|
||||
'managerOfCandidateGroup': true,
|
||||
'memberOfCandidateGroup': true,
|
||||
'memberOfCandidateUsers': true
|
||||
});
|
||||
|
||||
export let taskDetailsWithOutCandidateGroup = new TaskDetailsModel({
|
||||
'id': '91',
|
||||
'name': 'Request translation',
|
||||
'description': null,
|
||||
'category': null,
|
||||
'assignee': {'id': 1001, 'firstName': 'Wilbur', 'lastName': 'Adams', 'email': 'wilbur@app.activiti.com'},
|
||||
'created': '2016-11-03T15:25:42.749+0000',
|
||||
'dueDate': null,
|
||||
'endDate': null,
|
||||
'duration': null,
|
||||
'priority': 50,
|
||||
'parentTaskId': null,
|
||||
'parentTaskName': null,
|
||||
'processInstanceId': null,
|
||||
'processInstanceName': null,
|
||||
'processDefinitionId': 'TranslationProcess:2:8',
|
||||
'processDefinitionName': 'Translation Process',
|
||||
'managerOfCandidateGroup': false,
|
||||
'memberOfCandidateGroup': false,
|
||||
'memberOfCandidateUsers': false,
|
||||
'involvedGroups': [],
|
||||
'involvedPeople': [{'id': 1001, 'firstName': 'Wilbur', 'lastName': 'Adams', 'email': 'wilbur@app.activiti.com'},
|
||||
{'id': 111, 'firstName': 'fake-first-name', 'lastName': 'fake-last-name', 'email': 'fake@app.activiti.com'}]
|
||||
});
|
||||
|
||||
export let completedTaskDetailsMock = new TaskDetailsModel({
|
||||
'id': '91',
|
||||
'name': 'Request translation',
|
||||
'description': null,
|
||||
'category': null,
|
||||
'assignee': {'id': 1001, 'firstName': 'Wilbur', 'lastName': 'Adams', 'email': 'wilbur@app.activiti.com'},
|
||||
'created': '2016-11-03T15:25:42.749+0000',
|
||||
'dueDate': null,
|
||||
'endDate': '2016-11-03T15:25:42.749+0000',
|
||||
'duration': null,
|
||||
'priority': 50,
|
||||
'parentTaskId': null,
|
||||
'parentTaskName': null,
|
||||
'processInstanceId': '86',
|
||||
'processInstanceName': null,
|
||||
'processDefinitionId': 'TranslationProcess:2:8',
|
||||
'processDefinitionName': 'Translation Process',
|
||||
'involvedGroups': [],
|
||||
'involvedPeople': [],
|
||||
'managerOfCandidateGroup': true,
|
||||
'memberOfCandidateGroup': true,
|
||||
'memberOfCandidateUsers': false
|
||||
});
|
||||
|
||||
export let taskFormMock = new TaskDetailsModel({
|
||||
'id': 4,
|
||||
'name': 'Translation request',
|
||||
|
Reference in New Issue
Block a user