frontend: Add instance update functionality
This commit is contained in:
parent
ccab2883a6
commit
45af2cc95b
6 changed files with 119 additions and 70 deletions
|
|
@ -21,6 +21,7 @@ type WissKIInfo struct {
|
|||
// Information about the running instance
|
||||
Running bool
|
||||
LastRebuild time.Time
|
||||
LastUpdate time.Time
|
||||
|
||||
// List of backups made
|
||||
Snapshots []models.Export
|
||||
|
|
@ -63,6 +64,10 @@ func (wisski *WissKI) Info(quick bool) (info WissKIInfo, err error) {
|
|||
info.LastRebuild, _ = wisski.LastRebuild()
|
||||
return nil
|
||||
})
|
||||
group.Go(func() (err error) {
|
||||
info.LastUpdate, _ = wisski.LastUpdate()
|
||||
return nil
|
||||
})
|
||||
group.Go(func() error {
|
||||
info.Pathbuilders, _ = wisski.AllPathbuilders()
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue