Job navigation and PipelineTracks

This commit is contained in:
Dunemask 2022-08-06 12:25:56 +00:00
parent 8ad5b7876c
commit 59fe1eda7f
14 changed files with 270 additions and 126 deletions

View file

@ -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 (