From 94075983f8abfcc7749cede5af9e24d2a9f1abe0 Mon Sep 17 00:00:00 2001 From: Smart-Codi Date: Thu, 14 Apr 2022 16:34:15 -0400 Subject: [PATCH] feat: Remove legacy sql alchemy db connection link from G Sheet connection (#19450) * feat: Remove legacy sql alchemy db connection link from G Sheet connection * resolve comment --- .../data/database/DatabaseModal/index.tsx | 58 ++++++++++--------- 1 file changed, 32 insertions(+), 26 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 dee6f4dd3f9dc..c4faa8a483ebe 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx @@ -139,6 +139,8 @@ const errorAlertMapping = { ), }, }; +const googleSheetConnectionEngine = 'gsheets'; + interface DatabaseModalProps { addDangerToast: (msg: string) => void; addSuccessToast: (msg: string) => void; @@ -1575,32 +1577,36 @@ const DatabaseModal: FunctionComponent = ({ validationErrors={validationErrors} />
infoTooltip(theme)}> - - + {dbModel.engine !== googleSheetConnectionEngine && ( + <> + + + + )}
{/* Step 2 */} {showDBError && errorAlert()}