Allow setting a custom name for a test match.

This commit is contained in:
Patrick Fairbank
2022-07-24 16:50:41 -07:00
parent c78c5323bb
commit 3236456089
5 changed files with 44 additions and 14 deletions

View File

@@ -219,7 +219,7 @@ func (arena *Arena) LoadMatch(match *model.Match) error {
// Sets a new test match containing no teams as the current match.
func (arena *Arena) LoadTestMatch() error {
return arena.LoadMatch(&model.Match{Type: "test"})
return arena.LoadMatch(&model.Match{Type: "test", DisplayName: "Test Match"})
}
// Loads the first unplayed match of the current match type.