Adds state option for PublicHolidays

This commit is contained in:
cauterize
2022-08-25 17:23:32 +02:00
parent 2db398c8b0
commit 813c475a9c
2 changed files with 5 additions and 2 deletions

View File

@@ -57,7 +57,8 @@ export default {
endpoint() {
return `${widgetApiEndpoints.holidays}`
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
+ `&country=${this.country}&holidayType=${this.holidayType}`;
+ `&country=${this.country}&holidayType=${this.holidayType}`
+ `${this.options?.state ? `&region=${this.options.state}` : ''}`;
},
},
methods: {