Job navigation and PipelineTracks
This commit is contained in:
parent
8ad5b7876c
commit
59fe1eda7f
14 changed files with 270 additions and 126 deletions
|
@ -1,5 +1,5 @@
|
|||
import React, { useState, useContext } from "react";
|
||||
import {useNavigate} from "react-router-dom";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import StoreContext from "../../ctx/StoreContext.jsx";
|
||||
import JobContext from "../../ctx/JobContext.jsx";
|
||||
|
||||
|
@ -16,7 +16,7 @@ import Stack from "@mui/material/Stack";
|
|||
|
||||
export default function CatalogBox(props) {
|
||||
const { catalogTest } = props;
|
||||
|
||||
|
||||
const {
|
||||
name: testName,
|
||||
class: testClass,
|
||||
|
@ -26,7 +26,7 @@ export default function CatalogBox(props) {
|
|||
} = catalogTest;
|
||||
|
||||
const navigate = useNavigate();
|
||||
|
||||
|
||||
const { state: store, updateStore } = useContext(StoreContext);
|
||||
|
||||
const { state: jobState, jobBuilder } = useContext(JobContext);
|
||||
|
@ -39,7 +39,7 @@ export default function CatalogBox(props) {
|
|||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
const jobId = jobBuilder([catalogTest]);
|
||||
if(store.focusJob) navigate(`/qualiteer/jobs#${jobId}`);
|
||||
if (store.focusJob) navigate(`/qualiteer/jobs#${jobId}`);
|
||||
};
|
||||
|
||||
function Actions() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue