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

Fix add your location on /people/ page #6895

Merged
merged 3 commits into from
Dec 3, 2019

Conversation

nstjean
Copy link
Contributor

@nstjean nstjean commented Dec 3, 2019

Fixes #5882 (<=== Add issue number here)

This button wasn't working because there was no form and no URL to submit to.

This PR adds a URL as an attribute to the Add your location link, and checks for that attribute in the javascript code.

It also doesn't show the button link if the user already has a location entered.

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

@nstjean
Copy link
Contributor Author

nstjean commented Dec 3, 2019

Well it looks like I'll be figuring out why the changes are causing errors in the tests!

@nstjean
Copy link
Contributor Author

nstjean commented Dec 3, 2019

What it looks like when the user already has a location:
FireShot Capture 088 - 🎈 Public Lab_ List - localhost

What it looks like when the user doesnt:
FireShot Capture 089 - 🎈 Public Lab_ List - localhost

Re-styling the button to match the style guide will be posted as a fto-candidate or gci task. :)

@jywarren
Copy link
Member

jywarren commented Dec 3, 2019

Looks amazing! Yeah, the only thing left to style on the button is changing the color attribute!

Thanks so much!!!!

@jywarren jywarren merged commit 1f51e08 into publiclab:master Dec 3, 2019
vinitshahdeo pushed a commit to vinitshahdeo/plots2 that referenced this pull request Feb 1, 2020
* add parameter to pass url to addTag

* remove alerts and uncomment

* fix error - check if user is logged in
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.

Add your location on /people page doesn't work?
2 participants