toolbox-team / reddit-moderator-toolbox-legacy

LEGACY VERSION do not use
http://www.reddit.com/r/toolbox
Apache License 2.0
66 stars 40 forks source link

Mod button "remember last action" doesn't remove ban fields if the action isn't ban #838

Closed eritbh closed 7 years ago

eritbh commented 7 years ago

If the dialog opens to an action that isn't "ban" the note fields shouldn't come up initially because they don't apply to that action. Check if the action is a ban or not when opening the field and if not hide the fields.

https://github.com/creesch/reddit-moderator-toolbox/blob/master/extension/data/modules/modbutton.js#L304

(I'm fixing this in like ten minutes, just putting it here just in case.)