pull/1/head
vilmibm 2023-02-23 22:25:15 +00:00
parent 6ec2a52db8
commit 5e20b0569e
1 changed files with 5 additions and 2 deletions

View File

@ -152,7 +152,7 @@ func _main() error {
if len(signups) == 1 {
plural = ""
}
count.SetText(fmt.Sprintf("[-:-:b]%d pending signup%s[-:-:-]", len(signups), plural))
count.SetText(fmt.Sprintf("[-:-:b]%d of %d %s[-:-:-]", signupIx+1, len(signups), plural))
}
updateCount()
@ -292,7 +292,7 @@ func _main() error {
app.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
currPage, _ := pages.GetFrontPage()
if currPage == "notate" {
if currPage == "notate" || currPage == "review" {
return event
}
switch event.Rune() {
@ -315,6 +315,7 @@ func _main() error {
decisionFI.SetCurrentOption(0)
pages.SwitchToPage("review")
app.SetFocus(cleanEmailInput)
return nil
case 'R':
if len(signups) == 0 {
return nil
@ -322,6 +323,8 @@ func _main() error {
providedEmailView.SetText(signups[signupIx].Email)
decisionFI.SetCurrentOption(1)
pages.SwitchToPage("review")
app.SetFocus(cleanEmailInput)
return nil
case 'N':
if len(signups) == 0 {
return nil