REFACTOR: Invite modal panels init, actions, and styling (PR #10242)

  • Import @action rather than using actions: {}
  • Set default values in functions outside of init, so the functions can be modified by modifyClass (plugin api).
  • Move padding from .choices div to the input in group selector.

Existing padding

Screenshot from 2020-07-15 08-41-59

New padding

Screenshot from 2020-07-15 08-43-13

GitHub

If these are meant to be modified by plugin api they shouldn’t be designated private using an underscore. I recommend removing the underscore.

That makes sense, good recommendation.

The title of this pull request changed from “DEV: Refactor invite modal panels init function” to "REFACTOR: Invite modal panels init, actions, and styling