-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
users should not be able to add new options shortly before poll ends … #263
Conversation
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.
Thank you! The code looks fine. Haven't tested it yet but will tomorrow.
One small request: Could you remove the added English text entries from the non-English language files again, please? If they are missing, the fallback language (English) will automatically be used. If they are there, our translation tool will think they have already been translated.
OK, I tested it now. The "+" button on the poll page is correctly disabled as soon as the time threshold is crossed. That is good! But the error message that I was asking for is showing up on the poll page now rather than in the addoption dialog popup. I am sorry that I was not clear enough regarding the error message. Let me clarify:
Do you think you could still make these changes? Sorry again for not having been clear before... |
Hi, Sorry for getting back to you so late, I think I changed what you requested. Can you take a look @mensch72 ? |
No need to be sorry, I have to be actually, for not getting back earlier :-) At first glance it looks well. I will look at this in more depth before the end of the week. Thank you again for your work! |
OK, I tested it. There was still a minor problem when the addoption dialog was already open but the user not doing anything when the adding deadline is reached, because then the javascript code gets inactive and only detects the passing of the deadline when it is resumed at the next user action; if that next user action was clicking the "OK" button (which was not greyed out at that moment), then the adding went through because the pressing was processed before the button then was greyed out. I have merged this PR now and fixed the remaining thing myself in a separate PR. Thank you again! |
Users now shouldn't be able to add option after 1/14 of voting time has passed. The add option buttons are greyed out and red warning message is shown.