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 { ...@@ -8,12 +8,6 @@ export default {
}, },
methods: { methods: {
...mapActions(['setFilter']), ...mapActions(['setFilter']),
onInput(query) {
this.setFilter(query);
},
onSubmit() {
this.$emit('filter');
},
}, },
}; };
</script> </script>
...@@ -21,7 +15,7 @@ export default { ...@@ -21,7 +15,7 @@ export default {
<template> <template>
<gl-search-box-by-click <gl-search-box-by-click
:placeholder="s__('PackageRegistry|Filter by name')" :placeholder="s__('PackageRegistry|Filter by name')"
@submit="onSubmit" @submit="$emit('filter')"
@input="onInput" @input="setFilter"
/> />
</template> </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