Skip to content

Commit

Permalink
make alerts configurable (#15404)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored Jun 28, 2021
1 parent dd47bde commit ef0b393
Showing 1 changed file with 31 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,20 +555,38 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
closable={false}
css={(theme: SupersetTheme) => antDAlertStyles(theme)}
type="info"
message={t('Want to add a new database?')}
message={
connectionAlert?.ADD_DATABASE?.message ||
t('Want to add a new database?')
}
description={
<>
Any databases that allow connetions via SQL Alchemy URIs can be
added. Learn about how to connect a database driver{' '}
<a
href={DOCUMENTATION_LINK}
target="_blank"
rel="noopener noreferrer"
>
here
</a>
.
</>
connectionAlert?.ADD_DATABASE ? (
<>
Any databases that allow connetions via SQL Alchemy URIs can be
added.{' '}
<a
href={connectionAlert?.ADD_DATABASE.contact_link}
target="_blank"
rel="noopener noreferrer"
>
{connectionAlert?.ADD_DATABASE.contact_description_link}
</a>{' '}
{connectionAlert?.ADD_DATABASE.description}
</>
) : (
<>
Any databases that allow connetions via SQL Alchemy URIs can be
added. Learn about how to connect a database driver{' '}
<a
href={DOCUMENTATION_LINK}
target="_blank"
rel="noopener noreferrer"
>
here
</a>
.
</>
)
}
/>
</div>
Expand Down

0 comments on commit ef0b393

Please sign in to comment.