Query pane fixes

- Remove search bar
- Show server error message
This commit is contained in:
Akash N 2020-05-07 10:40:14 +05:30
parent 0c053c49a6
commit c94a624253
2 changed files with 2 additions and 26 deletions

View File

@ -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 && (

View File

@ -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,
});
}