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

Bugfix/prevent draft version alert popping incorrectly #95

Merged

Conversation

saulipurhonen
Copy link
Contributor

Description

Use draft status as state. Monitor this state when navigating between steps and object / submission types.

Related issues

Fixes #77 and #93

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Changes Made

  • Monitor draft status and fire draft dialog if unsaved changes
  • Destroy object card component after object / submission type change to prevent memory leaks
  • Check if form is edited and set draft status
  • Updated tests to match current code

Testing

  • Tests do not apply

Mentions

@lilachic initialized draft status state.

@saulipurhonen saulipurhonen added bug Something isn't working enhancement New feature or request labels Nov 11, 2020
@saulipurhonen saulipurhonen self-assigned this Nov 11, 2020
Copy link
Contributor

@lilachic lilachic left a comment

Choose a reason for hiding this comment

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

Plenty of places to handle draftStatus.

@blankdots blankdots merged commit 2bcbecd into develop Nov 11, 2020
@blankdots blankdots deleted the bugfix/prevent-draft-version-alert-popping-incorrectly branch November 11, 2020 15:44
@blankdots blankdots mentioned this pull request Nov 23, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
3 participants