frontend: Add instance update functionality

This commit is contained in:
Tom Wiesing 2022-10-15 18:14:23 +02:00
parent ccab2883a6
commit 45af2cc95b
No known key found for this signature in database
6 changed files with 119 additions and 70 deletions

View file

@ -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