Expose vault-backed remote choices in UI
This commit is contained in:
@@ -1888,6 +1888,22 @@ func (u *ui) remotePreferencesRetentionSummary() string {
|
||||
return "KeePassGO keeps up to six recent connections. Store remote credentials in the vault if this connection should persist across devices or reinstalls."
|
||||
}
|
||||
|
||||
func (u *ui) availableRemoteProfiles() []vault.RemoteProfile {
|
||||
profiles, err := u.state.RemoteProfiles()
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return profiles
|
||||
}
|
||||
|
||||
func (u *ui) availableRemoteCredentialEntries() []vault.Entry {
|
||||
entries, err := u.state.RemoteCredentialEntries()
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return entries
|
||||
}
|
||||
|
||||
func (u *ui) noteCurrentRemotePath() {
|
||||
status, ok := u.state.Session.(sessionStatus)
|
||||
if !ok || !status.IsRemote() || status.IsLocked() {
|
||||
|
||||
Reference in New Issue
Block a user