MCPcopy Index your code
hub / github.com/codecombat/codecombat / onClickUserSpyButton

Method onClickUserSpyButton

app/views/admin/MainAdminView.js:172–184  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

170 }
171
172 onClickUserSpyButton (e) {
173 e.stopPropagation()
174 const userID = $(e.target).closest('tr').data('user-id')
175 const button = $(e.currentTarget)
176 forms.disableSubmit(button)
177 return me.spy(userID, {
178 success () { return window.location.reload() },
179 error () {
180 forms.enableSubmit(button)
181 return errors.showNotyNetworkError(...arguments)
182 }
183 })
184 }
185
186 onClickTeacherDashboardButton (e) {
187 e.stopPropagation()

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
spyMethod · 0.80

Tested by

no test coverage detected