Skip to content

Commit

Permalink
rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiasn committed Oct 23, 2022
1 parent c080a62 commit 646327c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,14 @@ func FillIndices(idxs []Structs.EsIndices, t *tview.Table) {
t.Select(2, 1)
t.SetSelectable(true, false)
t.SetSelectedFunc(func(row, column int) {
selectedFunc(row, column, t)
selectedIndexFunc(row, column, t)
})
t.SetDoneFunc(func(key tcell.Key) {
tableDoneFunc(key, t)
})
}

func selectedFunc(row int, col int, tbl *tview.Table) {
func selectedIndexFunc(row int, col int, tbl *tview.Table) {
var selectedIndexName string
selectedIndexName = tbl.GetCell(row, 0).Text
r, _ := c.Get(fmt.Sprintf("%s/%s/_settings?pretty", EsUrl, selectedIndexName))
Expand Down

0 comments on commit 646327c

Please sign in to comment.