Upgrades people!

This commit is contained in:
Dunemask 2022-08-09 04:29:10 +00:00
parent f84234150f
commit 8ad56e8d38
40 changed files with 483 additions and 379 deletions

View file

@ -48,7 +48,7 @@ export default function FailingBox(props) {
failedMessage,
isCompound,
jobStatus: testJobStatus,
job
job,
} = failingTest;
const navigate = useNavigate();
@ -78,12 +78,12 @@ export default function FailingBox(props) {
}
const retryTest = () => {
const jobId = jobFactory({testNames: [testName], isTriage: true});
const jobId = jobFactory({ testNames: [testName], isTriage: true });
if (store.focusJob) navigate(`/qualiteer/jobs#${jobId}`);
};
const jobOnClick = () => {
if(!job) return retryTest;
if (!job) return retryTest;
switch (job.status) {
case jobStatus.OK:
return null;
@ -103,7 +103,7 @@ export default function FailingBox(props) {
};
function jobIcon() {
if(!job) return <ReplayIcon />;
if (!job) return <ReplayIcon />;
switch (job.status) {
case jobStatus.OK:
return <CheckIcon color="success" />;