(e)
| 376 | } |
| 377 | |
| 378 | onClickPublishButton (e) { |
| 379 | if (!this.tournamentId || (this.tournamentState !== 'waiting') || (me.get('_id') !== (this.league != null ? this.league.get('ownerID') : undefined))) { return } |
| 380 | |
| 381 | return publishTournament({ id: this.tournamentId }).then(res => { |
| 382 | return window.location.href = window.location.href |
| 383 | }).catch(err => { |
| 384 | return alert('tournament results publish failed') |
| 385 | }) |
| 386 | } |
| 387 | |
| 388 | onClickSpectateButton (e) { |
| 389 | e.preventDefault() |
nothing calls this directly
no test coverage detected