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
This commit is contained in:
Smart-Codi 2022-04-14 16:34:15 -04:00 committed by GitHub
parent 158852d074
commit 94075983f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,8 @@ const errorAlertMapping = {
), ),
}, },
}; };
const googleSheetConnectionEngine = 'gsheets';
interface DatabaseModalProps { interface DatabaseModalProps {
addDangerToast: (msg: string) => void; addDangerToast: (msg: string) => void;
addSuccessToast: (msg: string) => void; addSuccessToast: (msg: string) => void;
@ -1575,6 +1577,8 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
validationErrors={validationErrors} validationErrors={validationErrors}
/> />
<div css={(theme: SupersetTheme) => infoTooltip(theme)}> <div css={(theme: SupersetTheme) => infoTooltip(theme)}>
{dbModel.engine !== googleSheetConnectionEngine && (
<>
<Button <Button
data-test="sqla-connect-btn" data-test="sqla-connect-btn"
buttonStyle="link" buttonStyle="link"
@ -1601,6 +1605,8 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
)} )}
viewBox="0 -6 24 24" viewBox="0 -6 24 24"
/> />
</>
)}
</div> </div>
{/* Step 2 */} {/* Step 2 */}
{showDBError && errorAlert()} {showDBError && errorAlert()}