When the plugin is installed, and when you click the “+” and then “post voting”, you’ll be able to compose the discussion with the expected post voting format. Plugin works fine and no errors.
However, when you click the “+” sign in the composer again, then the “post voting”button will be toggled to “remove post voting”.
I see that is unnecessary to toggle as at that time both “usual discussion” post making button and the “remove post voting” button will do the same (they both will do the action of selecting the “usual discussion”). The user will be confused why there are two buttons with different names that does the same thing. I believe if there’s no significant purpose, that behaviour should be removed as it serves no function than confusion.
scenario: go to a main category → click the “+New topic” button displayed at the top of the category → Creating new ordinary topic (not a linked one) → then decided to make it post voting → clicked “Post voting” → decided to make it back to normal topic post → then clicked the “+” to change → now you see the two buttons in the picture.
At this state, both of these “New topic” and “Remove post voting” buttons will do the same thing. I tried creating posts and it does the same action: Turning the voting post --> ordinary topic post. Am I missing something here?
(Further, although the first button says “create a new topic linked to this topic” etc, we’re not inside a topic and not trying to create a linked post, I believe the text of the first button is also misleading here)
Thank you for taking prompt actions on the issue
I cloned the plugin from git through the official link, it has the issue. Further as you mentioned, it’s also reproducible from the try.discourse.org demo site.
However, my main issue was about the two buttons doing the same action.
The “reply as linked topic” appearing is a minor issue tbh.
The original point about it appearing alongside the Post Voting toggle is also a valid one. For other things you can toggle on and off, like Shared Drafts or Staff Alias, it would show one or the other depending on what mode you were in (and would suppress that extra option if any of those features were enabled and available to the person creating the topic):
I think we need to make the Post Voting toggle behave in the same way as the others.
Lastly, the point @Moin raises about creating a New Topic from the main page and inheriting the options from the previous reply: