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

Prevent $state.current to become empty afer refresh #1698

Merged
merged 2 commits into from
May 30, 2017

Conversation

lomamech
Copy link
Collaborator

Prevent $state.current to become empty afer refresh

  • User Management
  • Account Edit
  • Billing Sercice Updare
  • Inventory actions modal

closes #1345

@lomamech lomamech requested a review from jniles May 30, 2017 10:44
@lomamech lomamech force-pushed the fixRefreshUpdatePage branch 2 times, most recently from 891c8df to 5bb1ee8 Compare May 30, 2017 12:27
- User Management
- Account Edit
- Billing Sercice Updare
- Inventory actions modal
- Account Management
- Inventory`
Copy link
Collaborator

@mbayopanda mbayopanda left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -30,6 +30,9 @@ angular.module('bhima.routes')
})
.state('inventory.create', {
url : '/create',
params : {
creating : { value : true }
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is the need of value ? What do you think about :

params : {
  creating : true,
},

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It makes it possible to differentiate the creation of the update, to consider only the present of the $state.params.uuid was not sufficient especially when one refreshed the browser

@jniles
Copy link
Collaborator

jniles commented May 30, 2017

Seems like this got the green light! Merging...

@jniles jniles merged commit eafc0bd into Third-Culture-Software:master May 30, 2017
@lomamech lomamech deleted the fixRefreshUpdatePage branch April 7, 2020 17:01
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.

(bug) User Management does not load user on page refresh
3 participants