Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ const CollapsiblePanel: React.FC<{
children: React.ReactNode;
id: string;
title: React.ReactNode;
isDisabled?: boolean;
'data-test-subj'?: string;
}> = ({ id, title, children, 'data-test-subj': dataTestSubj }) => {
}> = ({ id, title, children, isDisabled, 'data-test-subj': dataTestSubj }) => {
const arrowProps = useMemo<EuiAccordionProps['arrowProps']>(() => {
if (dataTestSubj) {
return {
Expand All @@ -57,6 +58,7 @@ const CollapsiblePanel: React.FC<{
}
return undefined;
}, [dataTestSubj]);

const { euiTheme } = useEuiTheme();
return (
<EuiPanel
Expand Down Expand Up @@ -99,11 +101,12 @@ const CollapsiblePanel: React.FC<{
}
`}
id={id}
arrowDisplay="left"
arrowDisplay={isDisabled ? 'none' : 'left'}
buttonClassName="ingest-integration-title-button"
buttonContent={title}
arrowProps={arrowProps}
data-test-subj={dataTestSubj}
isDisabled={isDisabled}
>
{children}
</EuiAccordion>
Expand Down Expand Up @@ -142,6 +145,7 @@ export const IntegrationStatus: React.FunctionComponent<{
<CollapsiblePanel
id={integration.package_name}
data-test-subj={dataTestSubj}
isDisabled={!integration.error && !integration?.warning && !customAssets.length}
title={
<EuiTitle size="xs">
<h3>
Expand Down Expand Up @@ -252,6 +256,8 @@ export const IntegrationStatus: React.FunctionComponent<{
<EuiAccordion
id={`${customAsset.type}:${customAsset.name}`}
key={`${customAsset.type}:${customAsset.name}`}
arrowDisplay={customAsset.error ? 'left' : 'none'}
isDisabled={!customAsset.error}
buttonContent={
<EuiFlexGroup alignItems="baseline" gutterSize="xs">
<EuiFlexItem grow={false}>
Expand Down
Loading