diff --git a/superset-frontend/src/features/databases/DatabaseModal/index.tsx b/superset-frontend/src/features/databases/DatabaseModal/index.tsx index 4e1e58ebb..abd9aff06 100644 --- a/superset-frontend/src/features/databases/DatabaseModal/index.tsx +++ b/superset-frontend/src/features/databases/DatabaseModal/index.tsx @@ -1727,35 +1727,36 @@ const DatabaseModal: FunctionComponent = ({ ) { return ( [ antDModalNoPaddingStyles, antDModalStyles(theme), formHelperStyles(theme), formStyles(theme), ]} + footer={renderModalFooter()} + maskClosable={false} name="database" - onHandledPrimaryAction={onSave} onHide={onClose} + onHandledPrimaryAction={onSave} primaryButtonName={t('Connect')} - width="500px" - centered show={show} title={

{t('Connect a database')}

} - footer={renderModalFooter()} + width="500px" > - {passwordNeededField()} {confirmOverwriteField()} {importingErrorAlert()} + {passwordNeededField()}
); } @@ -1783,6 +1784,7 @@ const DatabaseModal: FunctionComponent = ({

{isEditMode ? t('Edit database') : t('Connect a database')}

} footer={modalFooter} + maskClosable={false} > @@ -1942,6 +1944,7 @@ const DatabaseModal: FunctionComponent = ({ show={show} title={

{t('Connect a database')}

} footer={renderModalFooter()} + maskClosable={false} > {!isLoading && hasConnectedDb ? ( <>