-
Notifications
You must be signed in to change notification settings - Fork 100
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
feat(cost center): add link to edit for bases #5976
feat(cost center): add link to edit for bases #5976
Conversation
6eedb40
to
b92abb7
Compare
@mbayopanda, I've fixed all the bugs in this. Can you give me a review? |
b92abb7
to
3f7c463
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked this over. It looks good to me. I tested this with bhima_test and the sample data and ti seems to work well.
However, I found one thing disconcerting: When you use the new "Edit allocation basis" for one of the cost centers, it does bring up the right edit modal. However when you are finished with it, it leaves you on the cost_center/allocation_bases (Allocation Bases) page. It seems to me that it should put you back on the Cost center registry page.
Adds a link to the cost center allocation basis edit modal. Closes IMA-WorldHealth#5957.
3f7c463
to
247185e
Compare
@jmcameron this is a good suggestion. I'll take a whack at it, but I have a feeling it will require a fair amount of work. If it isn't an easy fix, I'll make an issue about it for later. |
Given the time crunch, just create an issue and release the PR. We can fix that later. -Jonathan |
Adds a better UX by navigating back to the $state the user came from after completing the allocation basis form.
I think I got this working. Test again? |
Works great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works fine.
Nice fix with the cancel and submit going back to the Cost Center page. That seems more natural to me.
bors r+ |
Build succeeded: |
Adds a link to the cost center allocation basis edit modal.
Closes #5957.