Fix submitting the merge card's Other text on iPhone
This commit is contained in:
@@ -1476,6 +1476,7 @@ private struct ReadyBubble: View {
|
||||
if current, let task {
|
||||
let busy = store.taskBusy(task.id)
|
||||
let commented = comments(task).count
|
||||
let other = !trimmed(store.drafts?.textAnswer(draftKey(task)) ?? "").isEmpty || store.images.has(draftKey(task))
|
||||
AttentionReply(key: draftKey(task), placeholder: "Something else to tell the agent; sending it dismisses this", busy: dismissing, focus: $focus, send: { send(task) }) {
|
||||
Button("Dismiss") {
|
||||
dismiss(task, then: nil)
|
||||
@@ -1490,6 +1491,12 @@ private struct ReadyBubble: View {
|
||||
}
|
||||
.buttonStyle(WebButtonStyle(primary: true))
|
||||
.help("Send your comments to the agent in one message; sending dismisses this")
|
||||
} else if other {
|
||||
Button("Send") {
|
||||
send(task)
|
||||
}
|
||||
.buttonStyle(WebButtonStyle(primary: true))
|
||||
.help("Send this to the agent; sending dismisses this")
|
||||
} else if !discard {
|
||||
MergeButton(task: task, busy: busy, unmerged: unmerged, keepOpen: true, primary: task.readyMerge == ._continue)
|
||||
MergeButton(task: task, busy: busy, unmerged: unmerged, keepOpen: false, primary: task.readyMerge != ._continue)
|
||||
|
||||
Reference in New Issue
Block a user