Commit 95839318 authored by Nick Kipling's avatar Nick Kipling

Moved events to directly inside the template

parent 4d1c01ad
......@@ -8,12 +8,6 @@ export default {
},
methods: {
...mapActions(['setFilter']),
onInput(query) {
this.setFilter(query);
},
onSubmit() {
this.$emit('filter');
},
},
};
</script>
......@@ -21,7 +15,7 @@ export default {
<template>
<gl-search-box-by-click
:placeholder="s__('PackageRegistry|Filter by name')"
@submit="onSubmit"
@input="onInput"
@submit="$emit('filter')"
@input="setFilter"
/>
</template>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment