repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
33c165a
parent
442c4a1
author
Eric Bower
date
2025-03-19 14:50:12 -0400 EDT
fix(tui.tuns): reset requests pane when selecting
1 files changed,  +2, -0
M pkg/tui/tuns.go
+2, -0
 1@@ -196,6 +196,7 @@ func (m *TunsPage) HandleEvent(ev vaxis.Event, ph vxfw.EventPhase) (vxfw.Command
 2 		return vxfw.FocusWidgetCmd(m), nil
 3 	case PageOut:
 4 		m.selected = ""
 5+		m.logs = []*ResultLog{}
 6 		m.err = nil
 7 		m.done()
 8 	case ResultLogLineLoaded:
 9@@ -214,6 +215,7 @@ func (m *TunsPage) HandleEvent(ev vaxis.Event, ph vxfw.EventPhase) (vxfw.Command
10 	case vaxis.Key:
11 		if msg.Matches(vaxis.KeyEnter) {
12 			m.selected = m.tuns[m.leftPane.Cursor()].TunAddress
13+			m.logs = []*ResultLog{}
14 			return vxfw.RedrawCmd{}, nil
15 		}
16 		if msg.Matches(vaxis.KeyTab) {