Job navigation and PipelineTracks
This commit is contained in:
parent
8ad5b7876c
commit
59fe1eda7f
14 changed files with 270 additions and 126 deletions
|
@ -1,4 +1,5 @@
|
|||
import { useState, useContext } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import StoreContext from "../../ctx/StoreContext.jsx";
|
||||
import JobContext from "../../ctx/JobContext.jsx";
|
||||
import SilenceDialog from "../alerting/SilenceDialog.jsx";
|
||||
|
@ -19,7 +20,7 @@ import ReplayIcon from "@mui/icons-material/Replay";
|
|||
|
||||
export default function Failing() {
|
||||
const { state: jobState, retryAll } = useContext(JobContext);
|
||||
|
||||
const navigate = useNavigate();
|
||||
const {
|
||||
state: store,
|
||||
updateStore,
|
||||
|
@ -47,7 +48,10 @@ export default function Failing() {
|
|||
const handleClose = (confirmed) => () => {
|
||||
retryAllClick();
|
||||
if (!confirmed) return;
|
||||
retryAll(store.failing);
|
||||
const jobId = retryAll(store.failing);
|
||||
|
||||
if (!store.focusJob) return;
|
||||
navigate(`/qualiteer/jobs#${jobId}`);
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue