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

Display 'Validate document' menu item only when applicable #1534

Merged
merged 1 commit into from
Jun 22, 2018

Conversation

voodoorai2000
Copy link
Member

@voodoorai2000 voodoorai2000 commented Jun 21, 2018

References

Issue: consuldemocracy#2639

Background

We are trying to avoid Officers from forgetting to click the “Confirm vote” button, which is necessary to keep track of who has voted a Poll

Objectives

  • Hide the menu item 'Validate document' by default in the voting page
  • Once the Officer clicks the “Confirm Vote” display it again
  • If there are no votable polls, display the menu item

Visual Changes

officing menu

Does this PR need a Backport to CONSUL?

Yes. Backported in consul#3343.

Notes

Due to mobile version we have duplicate ids for menu items, so using classes for the menu items to hide them correctly

Maybe a custom layout for this page, without menu items, and instead buttons for the next actions, would be more appropriate, we'll explore the idea 😌

We are trying to avoid Officers from forgetting to click the “Confirm
vote” button, which is necessary to keep track of who has voted a Poll

To do that, we are not displaying the menu item to go back to the next
person that wants to vote, until the Officer clicks the “Confirm Vote”
button or the “The user has decided not to vote” button

Note: Due to mobile version we have duplicate ids, so using classes for
the menu items to hide them without errors

Note2: We are only hidding the menu item, if there are votable polls,
otherwise the “Confirm vote” button does not appear, and there is no
way of going back to help the next person that wants to vote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants