From 3c14e3eb0ca646b9fc776eac51ff65774f8f57d2 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Thu, 24 Feb 2022 22:45:40 -0800 Subject: [PATCH] Add lock icon --- Sources/Secretive/Views/SecretListItemView.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Sources/Secretive/Views/SecretListItemView.swift b/Sources/Secretive/Views/SecretListItemView.swift index 22c1f99..e70c47d 100644 --- a/Sources/Secretive/Views/SecretListItemView.swift +++ b/Sources/Secretive/Views/SecretListItemView.swift @@ -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 }) {