()
| 133 | } |
| 134 | |
| 135 | deleteChatMessage () { |
| 136 | return $.ajax({ |
| 137 | type: 'DELETE', |
| 138 | success () { |
| 139 | noty({ |
| 140 | timeout: 5000, |
| 141 | text: 'Aaaand it\'s gone.', |
| 142 | type: 'success', |
| 143 | layout: 'topCenter' |
| 144 | }) |
| 145 | return _.delay(() => application.router.navigate('/editor/chat', { trigger: true }) |
| 146 | , 500) |
| 147 | }, |
| 148 | error (jqXHR, status, error) { |
| 149 | console.error(jqXHR) |
| 150 | return { |
| 151 | timeout: 5000, |
| 152 | text: `Deleting chat message failed with error code ${jqXHR.status}`, |
| 153 | type: 'error', |
| 154 | layout: 'topCenter' |
| 155 | } |
| 156 | }, |
| 157 | url: `/db/chat_message/${this.chat.id}` |
| 158 | }) |
| 159 | } |
| 160 | |
| 161 | onFix (e) { |
| 162 | const current = this.treema.get('/context/code/current/javascript') |
nothing calls this directly
no outgoing calls
no test coverage detected