(invitations []management.OrganizationInvitation)
| 40 | } |
| 41 | |
| 42 | func (r *Renderer) InvitationsList(invitations []management.OrganizationInvitation) { |
| 43 | resource := "organization invitations" |
| 44 | |
| 45 | r.Heading(resource) |
| 46 | |
| 47 | if len(invitations) == 0 { |
| 48 | r.EmptyState(resource, "Use 'auth0 orgs invs create' to add one") |
| 49 | return |
| 50 | } |
| 51 | |
| 52 | var res []View |
| 53 | for _, m := range invitations { |
| 54 | res = append(res, makeInvitationsView(m)) |
| 55 | } |
| 56 | |
| 57 | r.Results(res) |
| 58 | } |
| 59 | |
| 60 | func (r *Renderer) InvitationsCreate(invitation management.OrganizationInvitation) { |
| 61 | r.Heading("organization invitation created") |
no test coverage detected