Let the human comment on each decision in the ready-for-merge card
This commit is contained in:
@@ -61,7 +61,7 @@ struct AttentionReply<Leading: View, Trailing: View>: View {
|
||||
}
|
||||
}
|
||||
|
||||
private struct OtherEntry: View {
|
||||
struct OtherEntry: View {
|
||||
let key: String
|
||||
let placeholder: String
|
||||
let busy: Bool
|
||||
@@ -82,6 +82,13 @@ private struct OtherEntry: View {
|
||||
focus: $editing, border: editing ? Palette.accent : Palette.border, send: send)
|
||||
.disabled(busy)
|
||||
}
|
||||
.onAppear {
|
||||
if trimmed(store.drafts?.textAnswer(key) ?? "").isEmpty && !store.images.has(key) {
|
||||
DispatchQueue.main.async {
|
||||
editing = true
|
||||
}
|
||||
}
|
||||
}
|
||||
.onChange(of: editing) {
|
||||
if !editing {
|
||||
if trimmed(text).isEmpty && !store.images.has(key) && !busy {
|
||||
|
||||
Reference in New Issue
Block a user