Add some information about instance

This commit is contained in:
localhost_frssoft 2022-10-13 01:41:34 +03:00
parent 7dd90ac015
commit 7d54da6380
4 changed files with 88 additions and 1 deletions

View file

@ -743,9 +743,15 @@ func (s *service) AboutInstance(c *client) (err error) {
if err != nil {
return
}
peers, err := c.GetInstancePeers(c.ctx)
if err != nil {
return
}
data := &renderer.AboutInstanceData{
CommonData: cdata,
Instance: instance,
Peers: peers,
}
return s.renderer.Render(c.rctx, c.w, renderer.AboutInstance, data)
}