@ -131,12 +131,7 @@ struct GroupStagesView: View {
}
}
}
}
} label : {
} label : {
Label {
Text ( " Qualifier un \( name ) de poule par tirage au sort " )
Text ( " Qualifier un \( name ) de poule par tirage au sort " )
} icon : {
Image ( systemName : " exclamationmark.circle.fill " )
. foregroundStyle ( . logoBackground )
}
}
}
. disabled ( tournament . moreQualifiedToDraw ( ) = = 0 || missingQualifiedFromGroupStages . isEmpty )
. disabled ( tournament . moreQualifiedToDraw ( ) = = 0 || missingQualifiedFromGroupStages . isEmpty )
} footer : {
} footer : {
@ -149,11 +144,25 @@ struct GroupStagesView: View {
}
}
let runningMatches = Tournament . runningMatches ( allMatches )
let runningMatches = Tournament . runningMatches ( allMatches )
Section {
MatchListView ( section : " en cours " , matches : runningMatches , matchViewStyle : . standardStyle , isExpanded : false )
MatchListView ( section : " en cours " , matches : runningMatches , matchViewStyle : . standardStyle , isExpanded : false )
}
Section {
MatchListView ( section : " prêt à démarrer " , matches : Tournament . availableToStart ( allMatches , in : runningMatches ) , matchViewStyle : . standardStyle , isExpanded : false )
MatchListView ( section : " prêt à démarrer " , matches : Tournament . availableToStart ( allMatches , in : runningMatches ) , matchViewStyle : . standardStyle , isExpanded : false )
}
Section {
MatchListView ( section : " à lancer " , matches : Tournament . readyMatches ( allMatches ) , matchViewStyle : . standardStyle , isExpanded : false )
MatchListView ( section : " à lancer " , matches : Tournament . readyMatches ( allMatches ) , matchViewStyle : . standardStyle , isExpanded : false )
}
Section {
MatchListView ( section : " terminés " , matches : finishedMatches , matchViewStyle : . standardStyle , isExpanded : false )
MatchListView ( section : " terminés " , matches : finishedMatches , matchViewStyle : . standardStyle , isExpanded : false )
}
}
}
. navigationTitle ( " Toutes les poules " )
. navigationTitle ( " Toutes les poules " )
case . groupStage ( let groupStage ) :
case . groupStage ( let groupStage ) :
GroupStageView ( groupStage : groupStage ) . id ( groupStage . id )
GroupStageView ( groupStage : groupStage ) . id ( groupStage . id )