mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2118] Process Initiator should be able to complete a task (#2951)
* [ADF-2118] Process Initiator should be able to complete a task. * Fixed Process Initiator should be able to complete a task. * * Fixed Process Initiator should be able to complete a task. * * Removed extra space
This commit is contained in:
committed by
Eugenio Romano
parent
6f81d7729e
commit
f828e8e847
@@ -284,6 +284,22 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
|
||||
return this.taskDetails.assignee.email === this.authService.getBpmUsername();
|
||||
}
|
||||
|
||||
isCompleteButtonVisible(): boolean {
|
||||
return this.isAssignedToMe() || this.canInitiatorComplete();
|
||||
}
|
||||
|
||||
canInitiatorComplete(): boolean {
|
||||
return this.taskDetails.initiatorCanCompleteTask;
|
||||
}
|
||||
|
||||
isSaveButtonVisible(): boolean {
|
||||
return this.hasSaveButton() && (!this.canInitiatorComplete() || this.isAssignedToMe());
|
||||
}
|
||||
|
||||
hasSaveButton(): boolean {
|
||||
return this.showFormSaveButton;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the next open task
|
||||
* @param processInstanceId
|
||||
|
Reference in New Issue
Block a user