Merge pull request #241 from iron3oxide/main
style: Fix typo: Websocked -> Websocket
This commit is contained in:
commit
fa4b735635
|
@ -256,7 +256,7 @@ func handleVaultStatus(request messages.IPCMessage, cfg *config.Config, vault *v
|
||||||
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.LastSynced = vault.GetLastSynced()
|
||||||
vaultStatus.WebsockedConnected = vault.IsWebsocketConnected()
|
vaultStatus.WebsocketConnected = vault.IsWebsocketConnected()
|
||||||
vaultStatus.PinSet = cfg.HasPin()
|
vaultStatus.PinSet = cfg.HasPin()
|
||||||
vaultStatus.LoggedIn = cfg.IsLoggedIn()
|
vaultStatus.LoggedIn = cfg.IsLoggedIn()
|
||||||
response, err = messages.IPCMessageFromPayload(vaultStatus)
|
response, err = messages.IPCMessageFromPayload(vaultStatus)
|
||||||
|
|
|
@ -20,7 +20,7 @@ type Vault struct {
|
||||||
sshKeyNoteIDs []string
|
sshKeyNoteIDs []string
|
||||||
envCredentials map[string]string
|
envCredentials map[string]string
|
||||||
lastSynced int64
|
lastSynced int64
|
||||||
websockedConnected bool
|
websocketConnected bool
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ func NewVault(keyring *crypto.Keyring) *Vault {
|
||||||
sshKeyNoteIDs: make([]string, 0),
|
sshKeyNoteIDs: make([]string, 0),
|
||||||
envCredentials: make(map[string]string),
|
envCredentials: make(map[string]string),
|
||||||
lastSynced: 0,
|
lastSynced: 0,
|
||||||
websockedConnected: false,
|
websocketConnected: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -424,7 +424,7 @@ func (vault *Vault) GetLastSynced() int64 {
|
||||||
|
|
||||||
func (vault *Vault) SetWebsocketConnected(connected bool) {
|
func (vault *Vault) SetWebsocketConnected(connected bool) {
|
||||||
vault.lockMutex()
|
vault.lockMutex()
|
||||||
vault.websockedConnected = connected
|
vault.websocketConnected = connected
|
||||||
vault.unlockMutex()
|
vault.unlockMutex()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,5 +432,5 @@ func (vault *Vault) IsWebsocketConnected() bool {
|
||||||
vault.lockMutex()
|
vault.lockMutex()
|
||||||
defer vault.unlockMutex()
|
defer vault.unlockMutex()
|
||||||
|
|
||||||
return vault.websockedConnected
|
return vault.websocketConnected
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ var statusCmd = &cobra.Command{
|
||||||
response["loginEntries"] = status.NumberOfLogins
|
response["loginEntries"] = status.NumberOfLogins
|
||||||
response["noteEntries"] = status.NumberOfNotes
|
response["noteEntries"] = status.NumberOfNotes
|
||||||
response["lastSynced"] = time.Unix(status.LastSynced, 0).String()
|
response["lastSynced"] = time.Unix(status.LastSynced, 0).String()
|
||||||
response["websocketConnected"] = status.WebsockedConnected
|
response["websocketConnected"] = status.WebsocketConnected
|
||||||
response["pinSet"] = status.PinSet
|
response["pinSet"] = status.PinSet
|
||||||
response["loggedIn"] = status.LoggedIn
|
response["loggedIn"] = status.LoggedIn
|
||||||
responseJSON, _ := json.Marshal(response)
|
responseJSON, _ := json.Marshal(response)
|
||||||
|
|
|
@ -27,7 +27,7 @@ type VaultStatusResponse struct {
|
||||||
NumberOfLogins int
|
NumberOfLogins int
|
||||||
NumberOfNotes int
|
NumberOfNotes int
|
||||||
LastSynced int64
|
LastSynced int64
|
||||||
WebsockedConnected bool
|
WebsocketConnected bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -110,7 +110,7 @@ Adw.ApplicationWindow window {
|
||||||
icon-name: "emblem-synchronizing-symbolic";
|
icon-name: "emblem-synchronizing-symbolic";
|
||||||
}
|
}
|
||||||
Adw.ActionRow websocket_connected_row {
|
Adw.ActionRow websocket_connected_row {
|
||||||
title: "Websocked Connected";
|
title: "Websocket Connected";
|
||||||
subtitle: "False";
|
subtitle: "False";
|
||||||
}
|
}
|
||||||
Adw.ActionRow logins_row {
|
Adw.ActionRow logins_row {
|
||||||
|
|
Loading…
Reference in New Issue