-
Notifications
You must be signed in to change notification settings - Fork 192
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
Fix settings survey route not accessible from mode-context #1692
Fix settings survey route not accessible from mode-context #1692
Conversation
@Angamanga can you take a look at this pull request when you have time? |
@Angamanga Another place in the mode-context doesn't work. I've fixed it too (screenshots above). Ready for review when you're back. |
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.
Break out lazy-load function, then approved!
I've made the change @Angamanga. So moving all those routes from settings-list.routes into the settings.routes file works, but the size for settings bundle is reduced from 1.5mb to about 700kb. The size of the ushahidi-legacy-app bundle is back up to 11.2mb. That's what I observed. |
@Ifycode Ok lets go with the original plan for now and skip my idea :D Sorry for the confusion... |
I've pushed a new change where I merged the two ideas @Angamanga you can check and test it now. |
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.
Approved!
url: '/settings', | ||
template: require('./settings-list.html'), | ||
controller: require('./settings-list.controller.js'), | ||
template: require('./settings.html'), | ||
lazyLoad: function ($transition$) { |
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.
Nice solution!
This pull request makes the following changes
Details
Screenshots
Testing checklist
Ping @ushahidi/platform