From ef0b393541f34d712432f23de3d732b779c60a9c Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Mon, 28 Jun 2021 10:14:13 -0700 Subject: [PATCH] make alerts configurable (#15404) --- .../data/database/DatabaseModal/index.tsx | 44 +++++++++++++------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx index ad4ae769ef955..bda4b72aede73 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx @@ -555,20 +555,38 @@ const DatabaseModal: FunctionComponent = ({ 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{' '} - - here - - . - + connectionAlert?.ADD_DATABASE ? ( + <> + Any databases that allow connetions via SQL Alchemy URIs can be + added.{' '} + + {connectionAlert?.ADD_DATABASE.contact_description_link} + {' '} + {connectionAlert?.ADD_DATABASE.description} + + ) : ( + <> + Any databases that allow connetions via SQL Alchemy URIs can be + added. Learn about how to connect a database driver{' '} + + here + + . + + ) } />