MCPcopy Create free account
hub / github.com/codecombat/codecombat / isContactShown

Function isContactShown

app/views/admin/SkippedContactsView.js:163–168  ·  view source on GitHub ↗
(contact)

Source from the content-addressed store, hash-verified

161 ),
162 methods: {
163 isContactShown (contact) {
164 if (!_.isEmpty(this.searchInput)) { return this.matchesFilter(contact) }
165 return (this.showArchived || !contact.archived) &&
166 ((this.showTrialRequestContacts && contact.trialRequest) ||
167 (this.showZenProspectContacts && contact.zpContact))
168 },
169 matchesFilter (contact) {
170 return _.contains(contact.email, this.searchInput)
171 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected