Skip to content

Commit

Permalink
fix(db): make to replace dbinstall str into showDbInstallInstructions
Browse files Browse the repository at this point in the history
  • Loading branch information
prosdev0107 committed Jun 22, 2022
1 parent 63eebfd commit fd81271
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions superset-frontend/src/components/ImportModal/ErrorAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,21 @@ export const DOCUMENTATION_LINK = supersetTextDocs

export interface IProps {
errorMessage: string;
dbInstall: boolean;
showDbInstallInstructions: boolean;
}

const ErrorAlert: FunctionComponent<IProps> = ({ errorMessage, dbInstall }) => (
const ErrorAlert: FunctionComponent<IProps> = ({
errorMessage,
showDbInstallInstructions,
}) => (
<Alert
closable={false}
css={(theme: SupersetTheme) => antdWarningAlertStyles(theme)}
type="error"
showIcon
message={errorMessage}
description={
dbInstall ? (
showDbInstallInstructions ? (
<>
<br />
{t(
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/components/ImportModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const ImportModelsModal: FunctionComponent<ImportModelsModalProps> = ({
{errorMessage && (
<ErrorAlert
errorMessage={errorMessage}
dbInstall={passwordFields.length > 0}
showDbInstallInstructions={passwordFields.length > 0}
/>
)}
{renderPasswordFields()}
Expand Down

0 comments on commit fd81271

Please sign in to comment.