@@ 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).