disable button when user is deleted
This commit is contained in:
parent
8ba51f026c
commit
048b9eaf1c
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user