use raw email value as a placeholder

trunk
vilmibm 2023-03-11 23:50:00 +00:00
parent 2f6164635f
commit 02c5079e31
1 changed files with 8 additions and 2 deletions

View File

@ -316,7 +316,10 @@ func _main() error {
if len(signups) == 0 { if len(signups) == 0 {
return nil return nil
} }
providedEmailView.SetText(signups[signupIx].Email) emailVal := signups[signupIx].Email
providedEmailView.SetText(emailVal)
cleanEmailInput.SetPlaceholder(
strings.TrimSpace(strings.ReplaceAll(emailVal, "\n", " ")))
decisionFI.SetCurrentOption(0) decisionFI.SetCurrentOption(0)
pages.SwitchToPage("review") pages.SwitchToPage("review")
app.SetFocus(cleanEmailInput) app.SetFocus(cleanEmailInput)
@ -325,7 +328,10 @@ func _main() error {
if len(signups) == 0 { if len(signups) == 0 {
return nil return nil
} }
providedEmailView.SetText(signups[signupIx].Email) emailVal := signups[signupIx].Email
providedEmailView.SetText(emailVal)
cleanEmailInput.SetPlaceholder(
strings.TrimSpace(strings.ReplaceAll(emailVal, "\n", " ")))
decisionFI.SetCurrentOption(1) decisionFI.SetCurrentOption(1)
pages.SwitchToPage("review") pages.SwitchToPage("review")
app.SetFocus(cleanEmailInput) app.SetFocus(cleanEmailInput)