Skip to content
Snippets Groups Projects
Commit 875e2a3c authored by Imre Toth's avatar Imre Toth Committed by Anders Lindh Olsson
Browse files

Resolve CE-3049 "Show records for not deployed iocs"

parent 3a8d1aba
No related branches found
No related tags found
2 merge requests!542Prepare 4.1.0,!520Resolve CE-3049 "Show records for not deployed iocs"
...@@ -79,11 +79,12 @@ export function IOCLiveStatus({ ioc }) { ...@@ -79,11 +79,12 @@ export function IOCLiveStatus({ ioc }) {
getSubset={getSubset} getSubset={getSubset}
alert={<AlertBannerList alerts={liveIOC.alerts} />} alert={<AlertBannerList alerts={liveIOC.alerts} />}
/> />
{liveIOC.activeDeployment?.host?.externalIdValid && (
<AccessControl <AccessControl
allowedRoles={["DeploymentToolAdmin", "DeploymentToolIntegrator"]} allowedRoles={["DeploymentToolAdmin", "DeploymentToolIntegrator"]}
renderNoAccess={() => <></>} renderNoAccess={() => <></>}
> >
{liveIOC.activeDeployment?.host?.externalIdValid && (
<SimpleAccordion <SimpleAccordion
summary="IOC log stream" summary="IOC log stream"
expanded={deserialize(state.log_stream_open)} expanded={deserialize(state.log_stream_open)}
...@@ -99,20 +100,20 @@ export function IOCLiveStatus({ ioc }) { ...@@ -99,20 +100,20 @@ export function IOCLiveStatus({ ioc }) {
/> />
)} )}
</SimpleAccordion> </SimpleAccordion>
<SimpleAccordion )}
summary="Records" <SimpleAccordion
expanded={deserialize(state.records_open)} summary="Records"
onChange={(_, expanded) => expanded={deserialize(state.records_open)}
setState({ records_open: serialize(expanded) }) onChange={(_, expanded) =>
} setState({ records_open: serialize(expanded) })
> }
<RecordSearch >
iocName={ioc.namingName} <RecordSearch
rowType="iocDetails" iocName={ioc.namingName}
/> rowType="iocDetails"
</SimpleAccordion> />
</AccessControl> </SimpleAccordion>
)} </AccessControl>
</> </>
); );
} }
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