Quite a few issues, some of which are concrete bugs. I will lump them all here as they will be fixed with the same patch.
==== Repro steps
* Go to https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/Wishes/W1
* Using your browser's developer tools, throttle your internet speed to something really slow
* Click on "Support wish" to open the voting dialog
* Hit the "Support" button over and over spanning at least one second
==== A laundry list of issues
**You can resubmit multiple times**
Multiple edits are visible in the [[ https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/Wishes/W1/Votes?action=history | revision history ]] due to the continual POST requests and the timestamp changing. It's possible the content of the vote is changed too, if you managed to change the "Optional comment" and resubmit before the first API response comes back.
You should not be able to resubmit, and only one edit should be made to the /Votes page.
**There is no pending state**
Just like anytime we're waiting on a response from an API, we should give some visual feedback that something is happening behind the scenes.
Product/design note: I was going to use the Codex [[ https://gerrit.wikimedia.org/r/plugins/gitiles/design/codex/+/refs/tags/v2.3.1/packages/codex/src/themes/mixins/pending-state.less | pending-state mixin ]] for now, which is what we use for the "Description" field on the intake form.
**The page title is shown in the dialog instead of the entity title**
`Title of my wish` is what should be shown instead of `Community Wishlist/Wishes/W123`.
**Vote is not reflected after submission**
The success message is shown, but the list and the vote count is not updated.
We should either live reload the /Votes page into the DOM, or ensure the parser cache is updated before or while refreshing.
**URL is updated to a nonexistent section**
The JS redirect goes to `#voting` when there is no element with that ID on the page.
After submission, the URL should be i.e. `Community Wishlist/Wishes/W123#Voting` (capitalized "Voting"), and this should work even for translation subpages.
**No message is shown to users with JavaScript disabled**
It's fine to not make it fully functional for no-JS, but we could at least clarify as currently it says "show your support using the button below."