Auth Flow Work
Go update too
This commit is contained in:
@@ -165,7 +165,9 @@ func (s *ScreenHome) HandleResize(ev *tcell.EventResize) {
|
||||
|
||||
func (s *ScreenHome) HandleKey(ev *tcell.EventKey) bool {
|
||||
if s.showAlert {
|
||||
return s.alert.HandleKey(ev)
|
||||
handled := s.alert.HandleKey(ev)
|
||||
s.alert.SetMessage(fmt.Sprintf("Alert Handled? %v -> %s", handled, ev.Name()))
|
||||
return handled
|
||||
}
|
||||
if ev.Key() == tcell.KeyF12 {
|
||||
s.toggleCli()
|
||||
@@ -390,6 +392,8 @@ func (s *ScreenHome) cliAuthPds(args ...string) bool {
|
||||
}
|
||||
s.alert.SetTitle("Authentication Started")
|
||||
s.alert.SetMessage(fmt.Sprintf("OAuth Process Started.\nIf a browser window didn't open, you can open this URL manually:\n%s", authUrl))
|
||||
s.alert.SetVisible(true)
|
||||
s.alert.SetActive(true)
|
||||
s.showAlert = true
|
||||
}()
|
||||
return true
|
||||
@@ -443,7 +447,7 @@ func (s *ScreenHome) updatePdsListing() {
|
||||
if viper.GetBool(data.KeyRecNmInfer) {
|
||||
if rec, ok := s.activePds.Records[rIds[j]]; ok {
|
||||
for k := range rec {
|
||||
if k == "name" || k == "title" || k == "label" {
|
||||
if k == "name" || k == "title" || k == "label" || k == "displayName" {
|
||||
if f, ok := rec[k].(string); ok {
|
||||
label = fmt.Sprintf("%s (%s)", f, rIds[j])
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user