mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-04-10 17:47:19 +00:00
Add lock icon
This commit is contained in:
parent
c92f83e477
commit
3c14e3eb0c
@ -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 }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user