diff --git a/superset-frontend/src/components/ImportModal/ErrorAlert.tsx b/superset-frontend/src/components/ImportModal/ErrorAlert.tsx index 5ff674e2710b7..52bd54a796188 100644 --- a/superset-frontend/src/components/ImportModal/ErrorAlert.tsx +++ b/superset-frontend/src/components/ImportModal/ErrorAlert.tsx @@ -31,10 +31,13 @@ export const DOCUMENTATION_LINK = supersetTextDocs export interface IProps { errorMessage: string; - dbInstall: boolean; + showDbInstallInstructions: boolean; } -const ErrorAlert: FunctionComponent = ({ errorMessage, dbInstall }) => ( +const ErrorAlert: FunctionComponent = ({ + errorMessage, + showDbInstallInstructions, +}) => ( antdWarningAlertStyles(theme)} @@ -42,7 +45,7 @@ const ErrorAlert: FunctionComponent = ({ errorMessage, dbInstall }) => ( showIcon message={errorMessage} description={ - dbInstall ? ( + showDbInstallInstructions ? ( <>
{t( diff --git a/superset-frontend/src/components/ImportModal/index.tsx b/superset-frontend/src/components/ImportModal/index.tsx index e7bb929ebcc40..6a980f7d2013b 100644 --- a/superset-frontend/src/components/ImportModal/index.tsx +++ b/superset-frontend/src/components/ImportModal/index.tsx @@ -303,7 +303,7 @@ const ImportModelsModal: FunctionComponent = ({ {errorMessage && ( 0} + showDbInstallInstructions={passwordFields.length > 0} /> )} {renderPasswordFields()}