Add lastsynced and websocket status to vault status
This commit is contained in:
parent
4dd2d3330b
commit
c862a1a5f8
|
@ -190,6 +190,8 @@ func handleVaultStatus(request messages.IPCMessage, cfg *config.Config, vault *v
|
||||||
vaultStatus.Locked = cfg.IsLocked()
|
vaultStatus.Locked = cfg.IsLocked()
|
||||||
vaultStatus.NumberOfLogins = len(vault.GetLogins())
|
vaultStatus.NumberOfLogins = len(vault.GetLogins())
|
||||||
vaultStatus.NumberOfNotes = len(vault.GetNotes())
|
vaultStatus.NumberOfNotes = len(vault.GetNotes())
|
||||||
|
vaultStatus.LastSynced = vault.GetLastSynced()
|
||||||
|
vaultStatus.WebsockedConnected = vault.IsWebsocketConnected()
|
||||||
response, err = messages.IPCMessageFromPayload(vaultStatus)
|
response, err = messages.IPCMessageFromPayload(vaultStatus)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue