Skip to content

Commit af606d3

Browse files
committed
filter slider parent notify about change
1 parent a16c879 commit af606d3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

frontend/src/components/shared/FilterSlider.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ export default {
3131
},
3232
}),
3333
methods: {
34-
select() {
35-
this.closed = true;
36-
const { min } = this.slider;
37-
const { max } = this.slider;
38-
this.$emit('filter', this.name, { min, max });
39-
},
4034
toggle() {
4135
this.closed = !this.closed;
4236
if (!this.closed) {
@@ -68,6 +62,7 @@ export default {
6862
this.$refs.slider.noUiSlider.on('update', (values) => {
6963
this.slider.startMin = parseInt(values[0], 10);
7064
this.slider.startMax = parseInt(values[1], 10);
65+
this.$emit('saveFilter', this.name, this.slider.startMin, this.slider.startMax);
7166
});
7267
},
7368
};

0 commit comments

Comments
 (0)