cancel rematch offers if going to RPA

This commit is contained in:
clarkerubber 2014-12-05 01:23:21 +11:00
parent c5ec584309
commit 537347aa66

View file

@ -143,6 +143,7 @@ module.exports = {
},
analysis: function(ctrl) {
if (game.replayable(ctrl.data)) return m('a.button.replay_and_analyse', {
onclick: partial(ctrl.socket.send, 'rematch-no', null),
href: ctrl.router.Round.watcher(ctrl.data.game.id, ctrl.data.player.color).url
}, ctrl.trans('analysis'));
}