Closed Glorfindel83 closed 5 years ago
By the looks of it we retrieve the NAA count directly from the API, so this bug is probably an issue on the Metasmoke end.
Related bug: FDSC shouldn't display the NAA count for questions.
Difficulty:
Scope:
Issue Owner: angussidney
This issue relates to one of our userscripts, Flag Dialog Smokey Controls (FDSC). One of the functions of this script is to display the number of each type of feedback on a post. However, NAA (not an answer) feedback isn't allowed on questions - therefore it should not be displayed.
All the files related to FDSC are stored in this folder. Specifically, you'll be looking at the main .user.js file which stores all of the code.
The relevant code for displaying feedbacks on this line. I recommend refactoring this line into several new lines, each appending HTML for each specific feedback. Not only will this make it easier for you to work with, it will also increase readability and maintainability. Then, you'll need to detect whether the selected post is a question, and if so, hide the NAA indicator.
Finally, don't forget to increment the version number in the metadata at the top, and update the .meta.js file to match.
For additional support in completing this issue, either:
Scroll down for Hacktoberfest summary and guidance.
The question linked to in this chat message behaves oddly when FDSC is opened; it shows an
naa
feedback. This could be theignore
feedback by bummi.