mirror of
https://github.com/apache/superset.git
synced 2024-09-18 11:39:49 -04:00
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:
parent
158852d074
commit
94075983f8
@ -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()}
|
||||||
|
Loading…
Reference in New Issue
Block a user