~edwargix/tallyard

327637d6c18c7942a59cac7f3aa9a4e7988ba3e9 — David Florness 4 years ago 80d91f5
Show candidates on election confirmation screen
1 files changed, 5 insertions(+), 0 deletions(-)

M ui/tui.go
M ui/tui.go => ui/tui.go +5 -0
@@ 183,6 183,11 @@ func electionConfirmation(el *election.Election) (shouldJoin bool) {
	}
	el.RUnlock()

	text += "\nCandidates:"
	for i, candidate := range el.Candidates {
		text += fmt.Sprintf("\n%d) %s", i, candidate)
	}

	modal := tview.NewModal().
		SetText(text).
		AddButtons(buttons).