mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-24 17:08:28 +00:00
parent
78da4ca2e6
commit
b4dcbeeaa1
@ -214,6 +214,7 @@ const AddService = ({
|
|||||||
: {}) as DataService
|
: {}) as DataService
|
||||||
}
|
}
|
||||||
serviceCategory={serviceCategory}
|
serviceCategory={serviceCategory}
|
||||||
|
serviceType={selectServiceType}
|
||||||
status={saveServiceState}
|
status={saveServiceState}
|
||||||
onCancel={handleConnectionDetailsBackClick}
|
onCancel={handleConnectionDetailsBackClick}
|
||||||
onSave={(e) => {
|
onSave={(e) => {
|
||||||
|
@ -24,6 +24,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
DatabaseConnection,
|
DatabaseConnection,
|
||||||
DatabaseService,
|
DatabaseService,
|
||||||
|
DatabaseServiceType,
|
||||||
} from '../../generated/entity/services/databaseService';
|
} from '../../generated/entity/services/databaseService';
|
||||||
import {
|
import {
|
||||||
MessagingConnection,
|
MessagingConnection,
|
||||||
@ -44,6 +45,7 @@ interface Props {
|
|||||||
data: DatabaseService | MessagingService | DashboardService | PipelineService;
|
data: DatabaseService | MessagingService | DashboardService | PipelineService;
|
||||||
okText?: string;
|
okText?: string;
|
||||||
cancelText?: string;
|
cancelText?: string;
|
||||||
|
serviceType: string;
|
||||||
serviceCategory: ServiceCategory;
|
serviceCategory: ServiceCategory;
|
||||||
status: LoadingState;
|
status: LoadingState;
|
||||||
onCancel?: () => void;
|
onCancel?: () => void;
|
||||||
@ -54,6 +56,7 @@ const ConnectionConfigForm: FunctionComponent<Props> = ({
|
|||||||
data,
|
data,
|
||||||
okText = 'Save',
|
okText = 'Save',
|
||||||
cancelText = 'Cancel',
|
cancelText = 'Cancel',
|
||||||
|
serviceType,
|
||||||
serviceCategory,
|
serviceCategory,
|
||||||
status,
|
status,
|
||||||
onCancel,
|
onCancel,
|
||||||
@ -149,7 +152,11 @@ const ConnectionConfigForm: FunctionComponent<Props> = ({
|
|||||||
uiSchema={connSch.uiSchema}
|
uiSchema={connSch.uiSchema}
|
||||||
onCancel={onCancel}
|
onCancel={onCancel}
|
||||||
onSubmit={handleSave}
|
onSubmit={handleSave}
|
||||||
onTestConnection={handleTestConnection}
|
onTestConnection={
|
||||||
|
serviceType !== DatabaseServiceType.SampleData
|
||||||
|
? handleTestConnection
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -24,6 +24,7 @@ import ConnectionConfigForm from './ConnectionConfigForm';
|
|||||||
|
|
||||||
interface ServiceConfigProps {
|
interface ServiceConfigProps {
|
||||||
serviceCategory: ServiceCategory;
|
serviceCategory: ServiceCategory;
|
||||||
|
serviceType: string;
|
||||||
data?: ServicesData;
|
data?: ServicesData;
|
||||||
handleUpdate: (
|
handleUpdate: (
|
||||||
data: ConfigData,
|
data: ConfigData,
|
||||||
@ -37,6 +38,7 @@ export const Field = ({ children }: { children: React.ReactNode }) => {
|
|||||||
|
|
||||||
const ServiceConfig = ({
|
const ServiceConfig = ({
|
||||||
serviceCategory,
|
serviceCategory,
|
||||||
|
serviceType,
|
||||||
data,
|
data,
|
||||||
handleUpdate,
|
handleUpdate,
|
||||||
}: ServiceConfigProps) => {
|
}: ServiceConfigProps) => {
|
||||||
@ -69,6 +71,7 @@ const ServiceConfig = ({
|
|||||||
| PipelineService
|
| PipelineService
|
||||||
}
|
}
|
||||||
serviceCategory={serviceCategory}
|
serviceCategory={serviceCategory}
|
||||||
|
serviceType={serviceType}
|
||||||
status={status}
|
status={status}
|
||||||
onSave={handleOnSaveClick}
|
onSave={handleOnSaveClick}
|
||||||
/>
|
/>
|
||||||
|
@ -999,6 +999,7 @@ const ServicePage: FunctionComponent = () => {
|
|||||||
data={serviceDetails as ServicesData}
|
data={serviceDetails as ServicesData}
|
||||||
handleUpdate={handleConfigUpdate}
|
handleUpdate={handleConfigUpdate}
|
||||||
serviceCategory={serviceName as ServiceCategory}
|
serviceCategory={serviceName as ServiceCategory}
|
||||||
|
serviceType={serviceDetails?.serviceType || ''}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user