Show staff count on invites page, don't warn if you have 3

This commit is contained in:
Robin Ward
2016-09-21 17:15:57 -04:00
parent 62e1f88adc
commit a95bb6006d
6 changed files with 29 additions and 1 deletions

View File

@ -209,6 +209,10 @@ class Wizard
end
@wizard.append_step('invites') do |step|
staff_count = User.where("moderator = true or admin = true").where("id <> ?", Discourse.system_user.id).count
step.add_field(id: 'staff_count', type: 'component', value: staff_count)
step.add_field(id: 'invite_list', type: 'component')
step.on_update do |updater|