tweaks
parent
6ec2a52db8
commit
5e20b0569e
|
@ -152,7 +152,7 @@ func _main() error {
|
||||||
if len(signups) == 1 {
|
if len(signups) == 1 {
|
||||||
plural = ""
|
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()
|
updateCount()
|
||||||
|
|
||||||
|
@ -292,7 +292,7 @@ func _main() error {
|
||||||
|
|
||||||
app.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
|
app.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
|
||||||
currPage, _ := pages.GetFrontPage()
|
currPage, _ := pages.GetFrontPage()
|
||||||
if currPage == "notate" {
|
if currPage == "notate" || currPage == "review" {
|
||||||
return event
|
return event
|
||||||
}
|
}
|
||||||
switch event.Rune() {
|
switch event.Rune() {
|
||||||
|
@ -315,6 +315,7 @@ func _main() error {
|
||||||
decisionFI.SetCurrentOption(0)
|
decisionFI.SetCurrentOption(0)
|
||||||
pages.SwitchToPage("review")
|
pages.SwitchToPage("review")
|
||||||
app.SetFocus(cleanEmailInput)
|
app.SetFocus(cleanEmailInput)
|
||||||
|
return nil
|
||||||
case 'R':
|
case 'R':
|
||||||
if len(signups) == 0 {
|
if len(signups) == 0 {
|
||||||
return nil
|
return nil
|
||||||
|
@ -322,6 +323,8 @@ func _main() error {
|
||||||
providedEmailView.SetText(signups[signupIx].Email)
|
providedEmailView.SetText(signups[signupIx].Email)
|
||||||
decisionFI.SetCurrentOption(1)
|
decisionFI.SetCurrentOption(1)
|
||||||
pages.SwitchToPage("review")
|
pages.SwitchToPage("review")
|
||||||
|
app.SetFocus(cleanEmailInput)
|
||||||
|
return nil
|
||||||
case 'N':
|
case 'N':
|
||||||
if len(signups) == 0 {
|
if len(signups) == 0 {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue