Add lock icon

This commit is contained in:
Max Goedjen 2022-02-24 22:45:40 -08:00
parent c92f83e477
commit 3c14e3eb0c
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 9 additions and 1 deletions

View File

@ -20,7 +20,15 @@ struct SecretListItemView: View {
)
return NavigationLink(destination: SecretDetailView(secret: secret), tag: secret.id, selection: $activeSecret) {
Text(secret.name)
if secret.requiresAuthentication {
HStack {
Text(secret.name)
Spacer()
Image(systemName: "lock")
}
} else {
Text(secret.name)
}
}.contextMenu {
if store is AnySecretStoreModifiable {
Button(action: { isRenaming = true }) {