chore: complete Operations Console ticket

This commit is contained in:
proxyctl coordinator
2026-07-17 20:48:58 +08:00
parent dd4ebddb45
commit fbb81ffb40
2 changed files with 14 additions and 15 deletions
+1 -2
View File
@@ -46,7 +46,7 @@ func (p terminalPresentation) renderTargetListPane(state dashboardRenderState, w
bodyHeight := max(1, height-2)
lines := make([]string, 0, len(state.catalog.items))
selectedIndex := state.catalog.index(state.selectedTargetID)
for i, item := range state.catalog.items {
for _, item := range state.catalog.items {
cursor := " "
if item.ID == state.selectedTargetID {
cursor = "> "
@@ -55,7 +55,6 @@ func (p terminalPresentation) renderTargetListPane(state dashboardRenderState, w
(!state.profileTransition && state.progressTarget == "" && state.applying && item.ID == state.selectedTargetID)
badge := p.targetBadge(item, applying)
lines = append(lines, cursor+badge+" "+item.Description.Name)
_ = i
}
if len(lines) == 0 {
lines = append(lines, "No Targets are currently Available.")