Permalink
Browse files

fix(slacknotes): date range filter

  • Loading branch information...
eteubert committed Jan 13, 2019
1 parent 13ca12b commit 2982f2bf172df4cf920cc65192c8a260d7e77d1f
Showing with 5 additions and 5 deletions.
  1. +5 −5 js/src/components/Slacknotes.vue
@@ -17,7 +17,7 @@

<v2-datepicker-range
v-model="dates"
@change="onChange"
@change="onDatepickerChange"
lang="en"
:default-value="defaultRange"
:picker-options="options"
@@ -234,15 +234,15 @@ export default {
},
methods: {
onChange: function (range) {
if (range.length == 2 && range[0].getTime() == range[1].getTime()) {
onDatepickerChange: function (range) {
if (range.length == 2) {
this.dates = [
startOfDay(range[0]),
endOfDay(range[1])
]
}
this.fetchLinks();
},
setOrder: function (order) {

0 comments on commit 2982f2b

Please sign in to comment.