Add chat icon button in customer section for chat tasks

This commit is contained in:
John Pinkyfloyd 2026-02-17 11:28:36 -08:00
parent 4712f40c8b
commit 25bfb9f4df

View file

@ -267,6 +267,18 @@ struct TaskDetailScreen: View {
Spacer() Spacer()
// Chat button for chat tasks
if task.isChat {
Button { showingChat = true } label: {
Image(systemName: "bubble.left.and.bubble.right.fill")
.foregroundColor(.white)
.font(.title2)
.padding(10)
.background(Color.white.opacity(0.2))
.clipShape(Circle())
}
}
if !d.customerPhone.isEmpty { if !d.customerPhone.isEmpty {
Button { callCustomer(d.customerPhone) } label: { Button { callCustomer(d.customerPhone) } label: {
Image(systemName: "phone.fill") Image(systemName: "phone.fill")