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

Feature/consistent alerts #81

Merged
merged 11 commits into from
Oct 8, 2020
Merged

Conversation

saulipurhonen
Copy link
Contributor

@saulipurhonen saulipurhonen commented Oct 7, 2020

Description

Created component for alert dialog. Component renders dialog content based on parent component location and alert type.
NOTE: When #77 is done, refactor alerts to be called only when form/upload has changed

Type of change

  • New feature (non-breaking change which adds functionality)

Changes Made

  • Moved dialog logic from object index and footer components to form alert component
  • Added functionality for stepper to check if submission type is available and render alert based on that condition

Testing

  • Needs testing (start an issue or do a follow up PR about it)

Copy link
Contributor

@blankdots blankdots left a comment

Choose a reason for hiding this comment

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

LGTM.

NOTE: There needs to be a check if form / upload field values have changed from initial render.

is that a new issues or how do we track it

@@ -112,8 +82,10 @@ const WizardFooter = () => {
color="primary"
disabled={wizardStep < 1}
className={classes.footerButton}
// TODO: Implement save functionality
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can create an issue out of it for better tracking if there isn't one yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

NOTE: There needs to be a check if form / upload field values have changed from initial render.

This is addressed in #77

I think we can create an issue out of it for better tracking if there isn't one yet.

Yeah, this is a different issue since save functionality is out of scope of dialog alerts.

@saulipurhonen saulipurhonen merged commit 8ce12d4 into develop Oct 8, 2020
@saulipurhonen saulipurhonen deleted the feature/consistent-alerts branch October 8, 2020 07:13
@csc-jm-zz csc-jm-zz mentioned this pull request Oct 19, 2020
6 tasks
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

Successfully merging this pull request may close these issues.

Make form closing alert to work more consistently
2 participants