Show progress while the Start workflow intent runs

This commit is contained in:
Ian Gulliver
2026-10-22 17:33:07 -07:00
parent da5ae91a1b
commit 16e03c8ae4
+11 -2
View File
@@ -169,11 +169,20 @@ struct QuickRunPage: View {
.disabled(starting) .disabled(starting)
Spacer() Spacer()
if let choice { if let choice {
Button("Start") { if starting {
ProgressView()
}
Button {
start(choice, prompt) start(choice, prompt)
} label: {
ZStack {
Text("Starting…")
.hidden()
Text(starting ? "Starting…" : "Start")
}
} }
.buttonStyle(WebButtonStyle(primary: true)) .buttonStyle(WebButtonStyle(primary: true))
.disabled(prompt.isEmpty || starting) .disabled(prompt.isEmpty)
} }
} }
.font(Fonts.font(15, weight: 700)) .font(Fonts.font(15, weight: 700))