mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: URI form is blank when trying to connect from sql lab (#20004)
This commit is contained in:
parent
7b7de9592b
commit
cc026e9fec
@ -18,6 +18,7 @@
|
||||
*/
|
||||
import {
|
||||
t,
|
||||
styled,
|
||||
SupersetTheme,
|
||||
FeatureFlag,
|
||||
isFeatureEnabled,
|
||||
@ -96,6 +97,18 @@ const engineSpecificAlertMapping = {
|
||||
},
|
||||
};
|
||||
|
||||
const TabsStyled = styled(Tabs)`
|
||||
.ant-tabs-content {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
overflow: inherit;
|
||||
|
||||
& > .ant-tabs-tabpane {
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
const googleSheetConnectionEngine = 'gsheets';
|
||||
|
||||
interface DatabaseModalProps {
|
||||
@ -1232,7 +1245,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
/>
|
||||
</TabHeader>
|
||||
</StyledStickyHeader>
|
||||
<Tabs
|
||||
<TabsStyled
|
||||
defaultActiveKey={DEFAULT_TAB_KEY}
|
||||
activeKey={tabKey}
|
||||
onTabClick={tabChange}
|
||||
@ -1385,7 +1398,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
/>
|
||||
{showDBError && errorAlert()}
|
||||
</Tabs.TabPane>
|
||||
</Tabs>
|
||||
</TabsStyled>
|
||||
</Modal>
|
||||
) : (
|
||||
<Modal
|
||||
@ -1421,7 +1434,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
{/* Dyanmic Form Step 1 */}
|
||||
{/* Dynamic Form Step 1 */}
|
||||
{!isLoading &&
|
||||
(!db ? (
|
||||
<SelectDatabaseStyles>
|
||||
|
Loading…
Reference in New Issue
Block a user