diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx index 28fdb78b2ea37..72c64512ba69c 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx @@ -66,32 +66,43 @@ interface FieldPropTypes { defaultDBName?: string; } -const CredentialsInfo = ({ changeMethods }: FieldPropTypes) => { - const [uploadOption, setUploadOption] = useState(0); +const CredentialsInfo = ({ changeMethods, isEditMode, db }: FieldPropTypes) => { + const [uploadOption, setUploadOption] = useState( + CredentialInfoOptions.copyPaste.valueOf(), + ); const [fileToUpload, setFileToUpload] = useState( null, ); return ( - - How do you want to enter service account credentials? - - + {!isEditMode && ( + <> + + How do you want to enter service account credentials? + + + + )} {uploadOption === CredentialInfoOptions.copyPaste ? (
Service Account -