mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-04-10 11:17:24 +02:00
Compare commits
1 Commits
maxgoedjen
...
maxg/disab
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e11458fc3 |
@@ -27,15 +27,20 @@ struct SecretListItemView: View {
|
|||||||
.contextMenu {
|
.contextMenu {
|
||||||
if store is AnySecretStoreModifiable {
|
if store is AnySecretStoreModifiable {
|
||||||
Button(action: { isRenaming = true }) {
|
Button(action: { isRenaming = true }) {
|
||||||
Image(systemName: "pencil")
|
// Image(systemName: "pencil")
|
||||||
Text(.secretListEditButton)
|
Text(.secretListEditButton)
|
||||||
}
|
}
|
||||||
Button(action: { isDeleting = true }) {
|
Button(action: { isDeleting = true }) {
|
||||||
Image(systemName: "trash")
|
// Image(systemName: "trash")
|
||||||
Text(.secretListDeleteButton)
|
Text(.secretListDeleteButton)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.showingDeleteConfirmation(isPresented: $isDeleting, secret, store as? AnySecretStoreModifiable) { deleted in
|
||||||
|
if deleted {
|
||||||
|
deletedSecret(secret)
|
||||||
|
}
|
||||||
|
}
|
||||||
.sheet(isPresented: $isRenaming, onDismiss: {
|
.sheet(isPresented: $isRenaming, onDismiss: {
|
||||||
renamedSecret(secret)
|
renamedSecret(secret)
|
||||||
}, content: {
|
}, content: {
|
||||||
|
|||||||
Reference in New Issue
Block a user