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"
|
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user