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

Fixed: Fixed issue where the new item dialog cannot be canceled #13846

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Fixed: Fixed issue where the new item dialog cannot be canceled #13846

merged 2 commits into from
Nov 13, 2023

Conversation

MrFrawsty
Copy link
Contributor

Resolved / Related Issues

  • Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
    Closes Bug: The new item dialog cannot be canceled #13787

Validation
How did you test these changes?

  • Did you build the app and test your changes?

  • Are there any other steps that were used to validate these changes?

    1. Open app ...
    2. Follow steps to reproduce issue
    3. Verify issue no longer persists.

The issue was the
viewModel.ResultType.ItemType in the AddItemDIalog was not being reset to the default ResultType.ItemType.Cancel and was remaining whatever type was last selected before pressing cancel. If there is another place I should reset it to cancel please let me know and I will revise it.

@yaira2 yaira2 changed the title Fixed Bug: The new item dialog cannot be canceled Fixed: Fixed issue where the new item dialog cannot be canceled Nov 13, 2023
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

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

The fix works for me, LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Nov 13, 2023
@yaira2 yaira2 merged commit 8bf60db into files-community:main Nov 13, 2023
6 checks passed
@yaira2
Copy link
Member

yaira2 commented Nov 13, 2023

@MrFrawsty congrats on your first PR in the Files repo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: The new item dialog cannot be canceled
2 participants