can only force resign on games without a clock

This commit is contained in:
Thibault Duplessis 2014-10-20 23:08:17 +02:00
parent f86bdf1283
commit 2edd689ffe

View file

@ -13,7 +13,7 @@ module.exports = {
}, m('span[data-icon=' + icon + ']')) : null;
},
forceResign: function(ctrl) {
if (!ctrl.data.opponent.ai && ctrl.data.opponent.isGone && round.resignable(ctrl.data))
if (!ctrl.data.opponent.ai && !ctrl.data.clock && ctrl.data.opponent.isGone && round.resignable(ctrl.data))
return m('div.force_resign_zone', [
ctrl.trans('theOtherPlayerHasLeftTheGameYouCanForceResignationOrWaitForHim'),
m('br'),