File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
views/Connection/ConnectionForm/components Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 153
153
"connectionForm.nonBreakingChangesPreference.label" : " Non-breaking schema updates detected*" ,
154
154
"connectionForm.nonBreakingChangesPreference.message" : " Set how Airbyte handles syncs when it detects a non-breaking schema change in the source" ,
155
155
"connectionForm.nonBreakingChangesPreference.ignore" : " Ignore" ,
156
+ "connectionForm.nonBreakingChangesPreference.disable" : " Disable connection" ,
156
157
"connectionForm.schemaChangesBackdrop.message" : " Please review the schema updates before making changes to the connection" ,
157
158
158
159
"connectionForm.modal.destinationNamespace.title" : " Destination namespace" ,
Original file line number Diff line number Diff line change @@ -11,12 +11,13 @@ import { useConnectionFormService } from "hooks/services/ConnectionForm/Connecti
11
11
12
12
import styles from "./NonBreakingChangesPreferenceField.module.scss" ;
13
13
14
+ const SUPPORTED_PREFERENCES = [ NonBreakingChangesPreference . ignore , NonBreakingChangesPreference . disable ] ;
15
+
14
16
export const NonBreakingChangesPreferenceField : React . FC < FieldProps < string > > = ( { field, form } ) => {
15
17
const { formatMessage } = useIntl ( ) ;
16
18
17
19
const preferenceOptions = useMemo ( ( ) => {
18
- const values = Object . values ( NonBreakingChangesPreference ) ;
19
- return values . map ( ( value ) => ( {
20
+ return SUPPORTED_PREFERENCES . map ( ( value ) => ( {
20
21
value,
21
22
label : formatMessage ( { id : `connectionForm.nonBreakingChangesPreference.${ value } ` } ) ,
22
23
testId : `nonBreakingChangesPreference-${ value } ` ,
You can’t perform that action at this time.
0 commit comments