Skip to content
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

Allow setting cancelAll() options on {{cancel-all}} helper #544

Open
nwhittaker opened this issue Oct 9, 2023 · 0 comments
Open

Allow setting cancelAll() options on {{cancel-all}} helper #544

nwhittaker opened this issue Oct 9, 2023 · 0 comments

Comments

@nwhittaker
Copy link

An enhancement request to add support to the {{cancel-all}} helper for passing options through to the task's cancelAll() method.

Observed

Currently the helper only passes on the task and sets a hard-coded reason:

return taskHelperClosure('cancel-all', 'cancelAll', [
cancelable,
{ reason: CANCEL_REASON },
]);

Expected

The helper has optional args for setting the cancelAll options:

{{cancel-all this.task reason='' resetState=true}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant