mirror of https://github.com/Lissy93/dashy.git
🚨 fix lint warning
This commit is contained in:
parent
813c475a9c
commit
38ad08a101
|
@ -54,11 +54,17 @@ export default {
|
||||||
const then = new Date((now.setMonth(now.getMonth() + this.monthsToShow)));
|
const then = new Date((now.setMonth(now.getMonth() + this.monthsToShow)));
|
||||||
return `${then.getDate()}-${then.getMonth() + 1}-${then.getFullYear()}`;
|
return `${then.getDate()}-${then.getMonth() + 1}-${then.getFullYear()}`;
|
||||||
},
|
},
|
||||||
|
region() {
|
||||||
|
if (this.options?.state) {
|
||||||
|
return `®ion=${this.options.state}`;
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
},
|
||||||
endpoint() {
|
endpoint() {
|
||||||
return `${widgetApiEndpoints.holidays}`
|
return `${`${widgetApiEndpoints.holidays}`
|
||||||
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
|
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
|
||||||
+ `&country=${this.country}&holidayType=${this.holidayType}`
|
+ `&country=${this.country}&holidayType=${this.holidayType}`}${
|
||||||
+ `${this.options?.state ? `®ion=${this.options.state}` : ''}`;
|
this.region}`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue