()
| 219 | } |
| 220 | |
| 221 | loadReactions() { |
| 222 | if (!this.accessToken) { |
| 223 | this.state.reactions = [] |
| 224 | return Promise.resolve([]) |
| 225 | } |
| 226 | |
| 227 | return this.getIssue() |
| 228 | .then((issue) => { |
| 229 | if (!issue.reactions.total_count) return [] |
| 230 | return http.get(issue.reactions.url, {}, '') |
| 231 | }) |
| 232 | .then((reactions) => { |
| 233 | this.state.reactions = reactions |
| 234 | return reactions |
| 235 | }) |
| 236 | } |
| 237 | |
| 238 | loadCommentReactions() { |
| 239 | if (!this.accessToken) { |