(e)
| 155 | } |
| 156 | |
| 157 | onSubmitEspionageForm (e) { |
| 158 | e.preventDefault() |
| 159 | const button = this.$('#enter-espionage-mode') |
| 160 | const userNameOrEmail = this.$el.find('#espionage-name-or-email').val().toLowerCase().trim() |
| 161 | forms.disableSubmit(button) |
| 162 | this.clearQueryParams() |
| 163 | return me.spy(userNameOrEmail, { |
| 164 | success () { return window.location.reload() }, |
| 165 | error () { |
| 166 | forms.enableSubmit(button) |
| 167 | return errors.showNotyNetworkError(...arguments) |
| 168 | } |
| 169 | }) |
| 170 | } |
| 171 | |
| 172 | onClickUserSpyButton (e) { |
| 173 | e.stopPropagation() |
nothing calls this directly
no test coverage detected