-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Disable the create booths button when the polls function is disabled #5104
Disable the create booths button when the polls function is disabled #5104
Conversation
@markusgeert Thank you for your pull request! And apologies in advance because there are a few pending pull requests in our queue so getting to this one will take some time 🙏. |
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.
Hi @markusgeert,
Thank you very much for the PR 👏
Here are two small suggestions about the code, what do you think?
On the other hand, Would it be possible to add some tests to validate that everything is working correctly? 🙏
Greetings.
c382f54
to
48c99eb
Compare
Hi @markusgeert Thanks for apply the review 👏 I have just added the Spanish translations and add this change I got confused when I suggested the change to use the If you feel up to it, the only thing missing would be to add a test and we could merge the PR 🥳 Greetings! |
48c99eb
to
2b01068
Compare
I added the Dutch translation and two tests that validate the enabled/disabled behavior. Let me know if there's anything else that should be added or changed. |
Hi, @markusgeert 😄. Regarding the Dutch translation you just mentioned, would it be possible to add it through our Crowdin project instead, once this pull request is merged? The reason I'm asking is as follows: for languages other than English and Spanish, our Crowdin bot takes whatever is in Crowdin and uses it to replace what's in this repository, meaning that, if we include Dutch translations in this pull request, they will be deleted by Crowdin. Thanks! |
Hi @javierm, I'll add it to Crowdin, no problem 🙂 . On a different note, I saw on Crowdin that a lot of the dutch translations have an English translation as the accepted answer, even though there's a dutch translation available. Should I open a new issue about this? Regarding this PR, I think it is ready to merge now 👌. |
f1d4526
to
1392733
Compare
Hi @markusgeert , I did a hard reset of your branch to master, and then included your commits. But when I did the first upload, the PR was closed because it didn't detect changes with master Now when I try to add your commits to your branch I can't because I don't have permissions "permission denied". I find it strange as I added changes to your commits the other day without any problems. I'll see if I can fix it. Sorry for the inconvenience 🙏 |
Alright, no worries. I can also give you commit rights to my fork if that helps? |
If it's not too much trouble for you, we can try this way and see if I can upload your changes again 🙏 |
@markusgeert Thanks! And sorry for the inconvenience. |
e2e9edc
to
539373c
Compare
539373c
to
9cc0834
Compare
9cc0834
to
13bf866
Compare
I've updated the changes to the latest master branch and fixed a typo in the Spanish translation. @markusgeert Thanks a lot! 🎉 |
References
Fixes:
Objectives
Prevent the admin from trying to create booths when this is not possible, by disabling the button when the polls feature is disabled.
Visual Changes
Down at the
/admin/budgets/{budget-id}
page, the 'Create booths' button looks at follows when the polls feature is disabled: