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"
)
}
// .disabled(contact.isDeleted)
.disabled(contact.isDeleted)
Button {
handleContactAction(.block, for: contact)
@ -83,7 +83,7 @@ struct ContactsTab: View {
systemImage: "hand.raised.fill"
)
}
// .disabled(contact.isDeleted)
.disabled(contact.isDeleted)
Button(role: .destructive) {
handleContactAction(.delete, for: contact)