forked from vikunja/frontend
Revert changes to listSearch component
This commit is contained in:
parent
894cf6c3f8
commit
8a3fe5daa2
|
@ -20,6 +20,7 @@
|
|||
|
||||
<script>
|
||||
import ListService from '../../../services/list'
|
||||
import ListModel from '../../../models/list'
|
||||
import Multiselect from '@/components/input/multiselect'
|
||||
|
||||
export default {
|
||||
|
@ -27,19 +28,16 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
listSerivce: ListService,
|
||||
list: ListModel,
|
||||
foundLists: [],
|
||||
}
|
||||
},
|
||||
components: {
|
||||
Multiselect,
|
||||
},
|
||||
prop: ['list'],
|
||||
model: {
|
||||
prop: 'list',
|
||||
event: 'selected',
|
||||
},
|
||||
beforeMount() {
|
||||
this.listService = new ListService()
|
||||
this.listSerivce = new ListService()
|
||||
this.list = new ListModel()
|
||||
},
|
||||
methods: {
|
||||
findLists(query) {
|
||||
|
@ -48,10 +46,9 @@ export default {
|
|||
return
|
||||
}
|
||||
|
||||
this.listService.getAll({}, {s: query})
|
||||
this.listSerivce.getAll({}, {s: query})
|
||||
.then(response => {
|
||||
this.$set(this, 'foundLists', response)
|
||||
this.$set(this, 'list', response)
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
|
@ -70,9 +67,6 @@ export default {
|
|||
}
|
||||
return this.$t('list.shared')
|
||||
},
|
||||
handleInput (value) {
|
||||
this.$emit('selected', value)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue