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

Fixes bug to hide edit form on save #4623

Merged
merged 5 commits into from
Apr 11, 2024
Merged

Fixes bug to hide edit form on save #4623

merged 5 commits into from
Apr 11, 2024

Conversation

perryr16
Copy link
Contributor

@perryr16 perryr16 commented Apr 10, 2024

Any background context you want to provide?

From the inventory detail, after saving inventory edits the from remained in edit mode. I went back to PRs from 2023 and experienced the same behavior

What's this PR do?

  • toggles a scope variable that hides the form.

How should this be manually tested?

  • inventory detail
  • edit
  • make edits
  • save
  • confirm
  • 'edit' button should replace 'save' and 'cancel' buttons

What are the relevant tickets?

Screenshots (if appropriate)

@perryr16 perryr16 added the Bug label Apr 10, 2024
@@ -475,7 +476,7 @@ angular.module('BE.seed.controller.inventory_detail', []).controller('inventory_
* save_item: saves the user's changes to the Property/TaxLot State object.
*/
const save_item_resolve = (data) => {
$scope.$emit('finished_saving');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This emit statement looks like it was related to hiding the form, but I went back several years and couldnt find any reference to 'finished_saving' outside of these two $emits

Honestly, I'm not sure how this worked before.

@perryr16 perryr16 marked this pull request as ready for review April 10, 2024 21:53
@kflemin kflemin merged commit 88b8db8 into develop Apr 11, 2024
9 checks passed
@kflemin kflemin deleted the bug-inv-det-save-form branch April 11, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Ready to Deploy
Development

Successfully merging this pull request may close these issues.

None yet

2 participants