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

View File

@ -20,7 +20,15 @@ struct SecretListItemView: View {
) )
return NavigationLink(destination: SecretDetailView(secret: secret), tag: secret.id, selection: $activeSecret) { 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 { }.contextMenu {
if store is AnySecretStoreModifiable { if store is AnySecretStoreModifiable {
Button(action: { isRenaming = true }) { Button(action: { isRenaming = true }) {