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

ACS-8254 [ADF] Add functionality to pass data on confirmation in DialogComponent #9845

Conversation

DaryaBalvanovich
Copy link
Contributor

@DaryaBalvanovich DaryaBalvanovich commented Jun 20, 2024

Please check if the PR fulfills these requirements

https://hyland.atlassian.net/browse/ACS-8254

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)
can't pass data on confirmation dataOnConfirm$

What is the new behaviour?
Able to pass data on confirmation with

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@DaryaBalvanovich DaryaBalvanovich force-pushed the ACS-8254-add-functionality-to-pass-data-onconfirmation-in-dialogComponent branch from bf490b2 to 4cc4b25 Compare June 20, 2024 18:55
@DaryaBalvanovich DaryaBalvanovich marked this pull request as ready for review June 21, 2024 05:57
@@ -89,9 +89,12 @@ function openDialog() {
title: 'Dialog title',
contentComponent: ExampleDialogComponent,
componentData: { nodeId: 'nodeId', name: 'node name' } // any data can be passed
dataOnConfirm$: of({ nodeId, data: {} })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay so what is the use case for this change?

Copy link
Contributor Author

@DaryaBalvanovich DaryaBalvanovich Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you click confirm button and need to pass any data to after close action. So this is the case when we call dialog in effects and want to do something with data we can pass it in component or service and get in effects

@DaryaBalvanovich DaryaBalvanovich force-pushed the ACS-8254-add-functionality-to-pass-data-onconfirmation-in-dialogComponent branch from 6286013 to 591489a Compare June 21, 2024 12:30
Copy link

sonarcloud bot commented Jun 21, 2024

@DenysVuika DenysVuika merged commit 785b582 into develop Jun 21, 2024
33 checks passed
@DenysVuika DenysVuika deleted the ACS-8254-add-functionality-to-pass-data-onconfirmation-in-dialogComponent branch June 21, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants