Query pane fixes
- Remove search bar - Show server error message
This commit is contained in:
parent
0c053c49a6
commit
c94a624253
|
|
@ -17,8 +17,6 @@ import { Datasource } from "api/DatasourcesApi";
|
|||
import { RestAction } from "api/ActionAPI";
|
||||
import history from "utils/history";
|
||||
import { createActionRequest } from "actions/actionActions";
|
||||
import { BaseTextInput } from "components/designSystems/appsmith/TextInputComponent";
|
||||
import { Colors } from "constants/Colors";
|
||||
import {
|
||||
PLUGIN_PACKAGE_MONGO,
|
||||
PLUGIN_PACKAGE_POSTGRES,
|
||||
|
|
@ -67,19 +65,6 @@ const QueryHomePage = styled.div`
|
|||
}
|
||||
`;
|
||||
|
||||
const SearchContainer = styled.div`
|
||||
display: flex;
|
||||
width: 40%;
|
||||
`;
|
||||
|
||||
const SearchBar = styled(BaseTextInput)`
|
||||
margin-bottom: 10px;
|
||||
input {
|
||||
background-color: ${Colors.WHITE};
|
||||
1px solid ${Colors.GEYSER};
|
||||
}
|
||||
`;
|
||||
|
||||
const CardsWrapper = styled.div`
|
||||
flex: 1;
|
||||
display: -webkit-box;
|
||||
|
|
@ -215,16 +200,6 @@ class QueryHomeScreen extends React.Component<QueryHomeScreenProps> {
|
|||
|
||||
return (
|
||||
<QueryHomePage>
|
||||
<SearchContainer>
|
||||
<SearchBar
|
||||
icon="search"
|
||||
input={{
|
||||
onChange: () => null,
|
||||
}}
|
||||
placeholder="Search"
|
||||
/>
|
||||
</SearchContainer>
|
||||
|
||||
<p style={{ fontSize: "14px" }}>Create Query</p>
|
||||
<CardsWrapper>
|
||||
{dataSources.length > 0 && (
|
||||
|
|
|
|||
|
|
@ -246,8 +246,9 @@ export function* executeQuerySaga(
|
|||
show: false,
|
||||
},
|
||||
});
|
||||
|
||||
AppToaster.show({
|
||||
message: "Query is invalid. Please edit to make it valid",
|
||||
message: error.message,
|
||||
type: ToastType.ERROR,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user