Fix submitting the merge card's Other text on iPhone

This commit is contained in:
Ian Gulliver
2026-10-22 08:04:04 -07:00
parent a3d1852f45
commit 445f56881c
+7
View File
@@ -1476,6 +1476,7 @@ private struct ReadyBubble: View {
if current, let task { if current, let task {
let busy = store.taskBusy(task.id) let busy = store.taskBusy(task.id)
let commented = comments(task).count 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) }) { AttentionReply(key: draftKey(task), placeholder: "Something else to tell the agent; sending it dismisses this", busy: dismissing, focus: $focus, send: { send(task) }) {
Button("Dismiss") { Button("Dismiss") {
dismiss(task, then: nil) dismiss(task, then: nil)
@@ -1490,6 +1491,12 @@ private struct ReadyBubble: View {
} }
.buttonStyle(WebButtonStyle(primary: true)) .buttonStyle(WebButtonStyle(primary: true))
.help("Send your comments to the agent in one message; sending dismisses this") .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 { } else if !discard {
MergeButton(task: task, busy: busy, unmerged: unmerged, keepOpen: true, primary: task.readyMerge == ._continue) 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) MergeButton(task: task, busy: busy, unmerged: unmerged, keepOpen: false, primary: task.readyMerge != ._continue)