Skip to content

Commit

Permalink
refactor: set dashboard list status labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ardevd committed Feb 14, 2024
1 parent fc8df33 commit 6cbf2e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/tui/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ func (m *DashboardModel) initData(width, height int) {
m.keys.Refresh,
}
}
m.lists[channels].SetStatusBarItemName("channel", "channels")

m.lists[payments].Title = "Latest Payments"
m.lists[payments].SetItems(m.nodeData.GetPaymentsAsListItems())
m.lists[payments].SetStatusBarItemName("payment", "payments")

m.lists[pendingChannels].Title = "Pending Channels"
m.lists[pendingChannels].SetItems(m.nodeData.GetPendingChannelsAsListItems())
m.lists[pendingChannels].SetStatusBarItemName("pending channel", "pending channels")

m.base = *NewBaseModel(m)
}
Expand Down

0 comments on commit 6cbf2e8

Please sign in to comment.