mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
view columns
This commit is contained in:
parent
8a19d7c4bc
commit
fa29bc65dc
@ -9,9 +9,13 @@ import useTheme from '../theme/useTheme';
|
||||
|
||||
const AppObjectDiv = styled.div`
|
||||
padding: 5px;
|
||||
&:hover {
|
||||
background-color: ${props => props.theme.left_background_blue[1]};
|
||||
}
|
||||
${props =>
|
||||
!props.disableHover &&
|
||||
`
|
||||
&:hover {
|
||||
background-color: ${props.theme.left_background_blue[1]};
|
||||
}
|
||||
`}
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
font-weight: ${props => (props.isBold ? 'bold' : 'normal')};
|
||||
@ -44,6 +48,7 @@ export function AppObjectCore({
|
||||
statusIcon = undefined,
|
||||
extInfo = undefined,
|
||||
statusTitle = undefined,
|
||||
disableHover = false,
|
||||
Menu = undefined,
|
||||
...other
|
||||
}) {
|
||||
@ -71,6 +76,7 @@ export function AppObjectCore({
|
||||
onDragStart={e => {
|
||||
e.dataTransfer.setData('app_object_drag_data', JSON.stringify(data));
|
||||
}}
|
||||
disableHover={disableHover}
|
||||
{...other}
|
||||
>
|
||||
{prefix}
|
||||
|
@ -13,6 +13,7 @@ function ColumnAppObject({ data, commonProps }) {
|
||||
title={columnName}
|
||||
extInfo={dataType}
|
||||
icon={getColumnIcon(data, true)}
|
||||
disableHover
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ function SqlObjectList({ conid, database }) {
|
||||
groupFunc={data => _.startCase(data.objectTypeField)}
|
||||
filter={filter}
|
||||
SubItems={SubColumnParamList}
|
||||
isExpandable={data => data.objectTypeField == 'tables'}
|
||||
isExpandable={data => data.objectTypeField == 'tables' || data.objectTypeField == 'views'}
|
||||
/>
|
||||
)}
|
||||
</WidgetsInnerContainer>
|
||||
|
Loading…
Reference in New Issue
Block a user