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

Method onLoaded

app/views/admin/AdministerUserModal.js:142–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 }
141
142 onLoaded () {
143 this.updateStripeStatus()
144 this.trialRequest = this.trialRequests.first()
145 if (this.trialRequest) { this.models.push(this.trialRequest) }
146 this.prepaidTableState = {}
147 this.productTableState = {}
148 this.foundTeachers = []
149 this.administratedTeachers = []
150 this.trialRequests = new TrialRequests()
151 if (me.isAdmin()) { this.supermodel.trackRequest(this.trialRequests.fetchByApplicant(this.userHandle)) }
152
153 return super.onLoaded()
154 }
155
156 afterInsert () {
157 if ((window.location.pathname === '/admin') && (window.location.search !== ('?user=' + this.user.id))) {

Callers

nothing calls this directly

Calls 3

updateStripeStatusMethod · 0.95
isAdminMethod · 0.80
fetchByApplicantMethod · 0.80

Tested by

no test coverage detected