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)
Spacer()
if let choice {
Button("Start") {
if starting {
ProgressView()
}
Button {
start(choice, prompt)
} label: {
ZStack {
Text("Starting…")
.hidden()
Text(starting ? "Starting…" : "Start")
}
}
.buttonStyle(WebButtonStyle(primary: true))
.disabled(prompt.isEmpty || starting)
.disabled(prompt.isEmpty)
}
}
.font(Fonts.font(15, weight: 700))