In the new Triage review queue, when looking at certain existing review items, there exists a "Vote up" button in the top right corner that allows me to upvote a post without clicking on the up arrow.
The way it's programmed on each page load is like this:
- Detect the current upvote state, and enable itself if not upvoted.
- If clicked, disable itself and remain disabled always. Otherwise, always remain enabled if enabled in the first place.
- Once clicked, act as though I clicked the vote arrow myself (upvote if not already and retract if already voted).
However, there are a couple of quirks with it:
Clicking the "Vote Up" button and then retracting the vote by clicking the actual arrow should re-enable the button, not leave it permanently disabled until the page is refreshed.
Clicking the actual vote arrow on the post should also automatically disable the button. Clicking the "Vote Up" button retracts the vote if I've already upvoted it, either using the actual arrow in the review or outside of the review item before accessing the review item.
In other words, the "Vote Up" button needs to remain exactly in sync with the actual vote, enabling itself when I haven't upvoted yet disabling when I have. It needs to go hand in hand with the actual vote arrow. Making it the way it is now will produce the aforementioned bugs.