Skip to content

Commit

Permalink
fix: unnnic date picker wpp templates
Browse files Browse the repository at this point in the history
  • Loading branch information
acnormun committed May 8, 2024
1 parent 477e3da commit 97b26c2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/components/whatsAppTemplates/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
{{ $t('WhatsApp.templates.table.filters.date.label') }}
</div>
<unnnicInputDatePicker
v-model="datePickerDates"
:days="['D', 'S', 'T', 'Q', 'Q', 'S', 'S']"
:months="months"
:options="options"
@submit="handleDateFilter"
:modelValue="datePickerDates"
@update:modelValue="handleDateFilter"
/>
</div>
<unnnic-select-smart
Expand Down Expand Up @@ -341,12 +338,12 @@
handleCategoryChange(event) {
this.selectedCategory = event;
},
handleDateFilter: debounce(async function (event) {
this.startDate = event.startDate;
handleDateFilter(event) {
this.startDate = event.start;
this.endDate = event.endDate;
this.showDateFilter = false;
}, 750),
},
handleNameSort(sortDirection) {
this.nameSortDirection = sortDirection;
this.dateSortDirection = 'NONE';
Expand Down

0 comments on commit 97b26c2

Please sign in to comment.