opengovfoundation / madison

Madison is a platform for lawmakers to share legislation with their citizens, allowing the community to add comments and suggest improvements.
GNU General Public License v3.0
675 stars 108 forks source link

edit /user/sponsor #1068

Closed IuliiSe closed 7 years ago

IuliiSe commented 7 years ago

I am trying to edit the list of states on the page /user/sponsor which ask the sponsor to select a state.

I've made changes in js/constants.js and in js/controllers/userSponsorPageController.js.

@sethetter What is the best way to proceed?

php artisan view:clear and php artisan route:cache do not update the page.

sethetter commented 7 years ago

@IuliiSe what changes did you make to those files? Those all live in the client folder, so any php or artisan command won't affect them.

Let me know what changes you made and what you're expecting to see.

IuliiSe commented 7 years ago

@sethetter I've followed the advice on #973 So, I changed the provinces like that and expect it to look like that

screen shot 2016-12-02 at 17 16 04

screen shot 2016-12-02 at 17 18 39

To end up with this: screen shot 2016-12-02 at 17 14 46

sethetter commented 7 years ago

@IuliiSe are you injecting the PROVINCES constant in a a dependency to the UserSponsorPageController?

IuliiSe commented 7 years ago

@sethetter I did not change anything else:

screen shot 2016-12-02 at 17 35 55

sethetter commented 7 years ago

I just tried it locally and it worked fine.

I think this is a cache issue.

IuliiSe commented 7 years ago

Oh. Great that it worked. I can't find a way to gracefully clean .sass-cache. What could it be except manually deleting the directory?

sethetter commented 7 years ago

Using make clean will handle that. Look at the Makefile for reference.