Allow changing tournament variant when no players have joined yet

pull/10013/head
Benedikt Werner 2021-10-18 13:32:54 +02:00
parent bcd3ee4084
commit dbd1bb09bf
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 2 additions and 3 deletions

View File

@ -195,8 +195,7 @@ final private class TourFields(form: Form[_], tour: Option[Tournament])(implicit
def isTeamBattle = tour.exists(_.isTeamBattle) || form("teamBattleByTeam").value.nonEmpty
private def disabledAfterStart = tour.exists(!_.isCreated)
private def disabledAfterCreate = tour.isDefined
private def disabledAfterStart = tour.exists(!_.isCreated)
def name =
form3.group(form("name"), trans.name()) { f =>
@ -229,7 +228,7 @@ final private class TourFields(form: Form[_], tour: Option[Tournament])(implicit
form3.select(
_,
translatedVariantChoicesWithVariants.map(x => x._1 -> x._2),
disabled = disabledAfterCreate
disabled = disabledAfterStart
)
)
def startPosition =