New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ACA-3416] Add Claim/Release actions on adf task form #5753
[ACA-3416] Add Claim/Release actions on adf task form #5753
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #5753 +/- ##
===========================================
+ Coverage 83.76% 84.60% +0.84%
===========================================
Files 945 203 -742
Lines 26858 7244 -19614
Branches 3775 1035 -2740
===========================================
- Hits 22497 6129 -16368
+ Misses 3234 807 -2427
+ Partials 1127 308 -819
Continue to review full report at Codecov.
|
lib/process-services/src/lib/task-list/components/task-form/claim-task.directive.spec.ts
Show resolved
Hide resolved
@@ -117,6 +117,14 @@ export class TaskFormComponent implements OnInit { | |||
@Output() | |||
cancel = new EventEmitter<void>(); | |||
|
|||
/** Emitted when the task is claimed. */ | |||
@Output() | |||
claim: EventEmitter<any> = new EventEmitter<any>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure this logic should be in the form
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have the same on the task form cloud. The name of the event should be changed. @eromano https://github.com/Alfresco/alfresco-ng2-components/blob/develop/lib/process-services-cloud/src/lib/task/task-form/components/task-form-cloud.component.ts#L78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's call them as the one in the cloud
77487a3
to
39d22f4
Compare
lib/process-services/src/lib/task-list/components/task-form/claim-task.directive.spec.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the comments
docs/process-services-cloud/directives/unclaim-task-cloud.directive.md
Outdated
Show resolved
Hide resolved
docs/process-services-cloud/directives/unclaim-task-cloud.directive.md
Outdated
Show resolved
Hide resolved
lib/process-services/src/lib/task-list/components/task-form/task-form.component.spec.ts
Outdated
Show resolved
Hide resolved
* Changed cloud directive names
* Add unit test too
cd7718f
to
a3ecd11
Compare
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
https://issues.alfresco.com/jira/browse/ACA-3416
Task form does not have claim/release actions as part the form actions.
What is the new behaviour?
Now if the Task been shared among the candidate, task form will show claim/release actions based on the task status
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: