Add chat icon button in customer section for chat tasks
This commit is contained in:
parent
4712f40c8b
commit
25bfb9f4df
1 changed files with 12 additions and 0 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue