Skip to content
Snippets Groups Projects
Commit bcad7798 authored by cjenkscybercom's avatar cjenkscybercom
Browse files

CE-2208: add heading to iod details management tab job table

parent 064b01b8
No related branches found
No related tags found
2 merge requests!407CE-2141: 3.0.0,!405Qa release tasks
Pipeline #164687 passed
import { Button, Link as MuiLink, Tooltip, Typography } from "@mui/material"; import {
Button,
Link as MuiLink,
Stack,
Tooltip,
Typography
} from "@mui/material";
import React, { import React, {
useState, useState,
useEffect, useEffect,
...@@ -58,7 +64,6 @@ export function IOCManage({ ...@@ -58,7 +64,6 @@ export function IOCManage({
const closeDeployModal = () => { const closeDeployModal = () => {
setDeployDialogOpen(false); setDeployDialogOpen(false);
getIOC(); getIOC();
// history.push(window.location.pathname);
}; };
const closeUndeployModal = () => { const closeUndeployModal = () => {
...@@ -134,7 +139,6 @@ export function IOCManage({ ...@@ -134,7 +139,6 @@ export function IOCManage({
] ]
); );
let content = <></>;
if (ioc) { if (ioc) {
const managedIOC = { ...ioc }; const managedIOC = { ...ioc };
...@@ -166,8 +170,8 @@ export function IOCManage({ ...@@ -166,8 +170,8 @@ export function IOCManage({
"There is an ongoing operation, you can not undeploy the IOC right now"; "There is an ongoing operation, you can not undeploy the IOC right now";
} }
content = ( return (
<> <Stack gap={2}>
<IOCDetails <IOCDetails
ioc={managedIOC} ioc={managedIOC}
getSubset={getSubset} getSubset={getSubset}
...@@ -214,12 +218,15 @@ export function IOCManage({ ...@@ -214,12 +218,15 @@ export function IOCManage({
allowedRoles={["DeploymentToolAdmin", "DeploymentToolIntegrator"]} allowedRoles={["DeploymentToolAdmin", "DeploymentToolIntegrator"]}
renderNoAccess={() => <></>} renderNoAccess={() => <></>}
> >
<JobTable <Stack gap={2}>
jobs={operations} <Typography variant="h3">Operations</Typography>
pagination={pagination} <JobTable
onPage={onPage} jobs={operations}
loading={operationsLoading} pagination={pagination}
/> onPage={onPage}
loading={operationsLoading}
/>
</Stack>
<DeployIOC <DeployIOC
open={deployDialogOpen} open={deployDialogOpen}
setOpen={setDeployDialogOpen} setOpen={setDeployDialogOpen}
...@@ -235,9 +242,8 @@ export function IOCManage({ ...@@ -235,9 +242,8 @@ export function IOCManage({
ioc={ioc} ioc={ioc}
/> />
</AccessControl> </AccessControl>
</> </Stack>
); );
} }
return null;
return <>{content}</>;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment