mirror of
https://github.com/status-im/status-go-monitor.git
synced 2025-01-29 12:34:48 +00:00
add info view
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
62c32b7a3d
commit
fd834252fb
9
main.go
9
main.go
@ -47,7 +47,7 @@ func main() {
|
|||||||
|
|
||||||
func layout(g *gocui.Gui) error {
|
func layout(g *gocui.Gui) error {
|
||||||
maxX, maxY := g.Size()
|
maxX, maxY := g.Size()
|
||||||
if v, err := g.SetView("main", 0, 0, maxX-1, maxY-1); err != nil {
|
if v, err := g.SetView("main", 0, 0, maxX-1, maxY/2); err != nil {
|
||||||
if err != gocui.ErrUnknownView {
|
if err != gocui.ErrUnknownView {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -59,6 +59,13 @@ func layout(g *gocui.Gui) error {
|
|||||||
g.SetCurrentView("main")
|
g.SetCurrentView("main")
|
||||||
fmt.Fprintln(v, "Loading peers...")
|
fmt.Fprintln(v, "Loading peers...")
|
||||||
}
|
}
|
||||||
|
if v, err := g.SetView("info", 0, maxY/2+1, maxX-1, maxY-1); err != nil {
|
||||||
|
if err != gocui.ErrUnknownView {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
v.Title = "Details"
|
||||||
|
fmt.Fprintln(v, "Loading details...")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user