mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-14 18:27:35 +00:00
Minor: fixed connection modal style (#18860)
* Minor: fixed connection modal style * addressing comment
This commit is contained in:
parent
a72b293bda
commit
f3f2efe3d5
@ -11,7 +11,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Button, Modal, Typography } from 'antd';
|
||||
import { Button, Col, Modal, Row, Typography } from 'antd';
|
||||
import { ColumnType } from 'antd/lib/table';
|
||||
import { ExpandableConfig } from 'antd/lib/table/interface';
|
||||
import { startCase } from 'lodash';
|
||||
@ -87,26 +87,30 @@ function IngestionRunDetailsModal({
|
||||
const expandable: ExpandableConfig<StepSummary> = useMemo(
|
||||
() => ({
|
||||
expandedRowRender: (record) => {
|
||||
return (
|
||||
record.failures?.map((failure) => (
|
||||
<ConnectionStepCard
|
||||
isTestingConnection={false}
|
||||
key={failure.name}
|
||||
testConnectionStep={{
|
||||
name: failure.name,
|
||||
mandatory: false,
|
||||
description: failure.error,
|
||||
}}
|
||||
testConnectionStepResult={{
|
||||
name: failure.name,
|
||||
passed: false,
|
||||
mandatory: false,
|
||||
message: failure.error,
|
||||
errorLog: failure.stackTrace,
|
||||
}}
|
||||
/>
|
||||
)) ?? []
|
||||
);
|
||||
return record.failures ? (
|
||||
<Row gutter={[16, 16]}>
|
||||
{record.failures.map((failure) => (
|
||||
<Col key={failure.name} span={24}>
|
||||
<ConnectionStepCard
|
||||
isTestingConnection={false}
|
||||
key={failure.name}
|
||||
testConnectionStep={{
|
||||
name: failure.name,
|
||||
mandatory: false,
|
||||
description: failure.error,
|
||||
}}
|
||||
testConnectionStepResult={{
|
||||
name: failure.name,
|
||||
passed: false,
|
||||
mandatory: false,
|
||||
message: failure.error,
|
||||
errorLog: failure.stackTrace,
|
||||
}}
|
||||
/>
|
||||
</Col>
|
||||
))}
|
||||
</Row>
|
||||
) : undefined;
|
||||
},
|
||||
indentSize: 0,
|
||||
expandIcon: () => null,
|
||||
|
@ -24,7 +24,6 @@
|
||||
box-sizing: border-box;
|
||||
border: 1px solid @border-color;
|
||||
border-radius: 4px;
|
||||
margin-top: 16px;
|
||||
&.success {
|
||||
border-color: #28a7454d;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user