disable button when user is deleted

This commit is contained in:
cheykrym 2025-12-13 05:16:41 +03:00
parent 8ba51f026c
commit 048b9eaf1c

View File

@ -73,7 +73,7 @@ struct ContactsTab: View {
systemImage: "square.and.pencil" systemImage: "square.and.pencil"
) )
} }
// .disabled(contact.isDeleted) .disabled(contact.isDeleted)
Button { Button {
handleContactAction(.block, for: contact) handleContactAction(.block, for: contact)
@ -83,7 +83,7 @@ struct ContactsTab: View {
systemImage: "hand.raised.fill" systemImage: "hand.raised.fill"
) )
} }
// .disabled(contact.isDeleted) .disabled(contact.isDeleted)
Button(role: .destructive) { Button(role: .destructive) {
handleContactAction(.delete, for: contact) handleContactAction(.delete, for: contact)