swarm-ui: retrying a broadcast shows the agents that failed, even ones the filter hides
This commit is contained in:
parent
89b20a5a50
commit
f65364759f
1 changed files with 33 additions and 3 deletions
|
|
@ -25,6 +25,7 @@ import {
|
|||
import { TextAreaField } from "../../ui/text-area-field/TextAreaField.js";
|
||||
import {
|
||||
failedAgents,
|
||||
filterShowing,
|
||||
isRunning,
|
||||
parseResults,
|
||||
selectedVisible,
|
||||
|
|
@ -130,7 +131,10 @@ export function BroadcastPage() {
|
|||
}
|
||||
|
||||
function retryFailed(results: BroadcastResult[]) {
|
||||
setTicked(failedAgents(results));
|
||||
const failed = failedAgents(results);
|
||||
// Only this page's view changes; the saved choice stays as it was.
|
||||
setFilterState(filterShowing(filter, all, failed));
|
||||
setTicked(failed);
|
||||
setSend({ status: "idle" });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue