Cleanup SearchInput

This commit is contained in:
Grzegorz Leoniec 2019-02-19 16:31:31 +01:00
parent 9ef322c154
commit 544d96e698
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -88,7 +88,6 @@
</template>
<script>
// import gql from 'graphql-tag'
import { isEmpty } from 'lodash'
export default {
@ -153,35 +152,6 @@ export default {
return
}
this.$emit('search', value)
// this.pending = true
// this.$apollo
// .query({
// query: gql(`
// query findPosts($filter: String!) {
// findPosts(filter: $filter, limit: 10) {
// id
// slug
// label: title
// value: title,
// shoutedCount
// commentsCount
// createdAt
// author {
// id
// name
// slug
// }
// }
// }
// `),
// variables: {
// filter: value
// }
// })
// .then(res => {
// this.results = res.data.findPosts || []
// this.pending = false
// })
},
handleInput(e) {
clearTimeout(this.searchProcess)