Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

✏️ Small refactor endpoint into single string

Alicia Sykes86b56f6b483e
diff --git a/src/components/Widgets/PublicHolidays.vue b/src/components/Widgets/PublicHolidays.vue
index 4ff00cc8..6d3d1e12 100644
--- a/src/components/Widgets/PublicHolidays.vue
+++ b/src/components/Widgets/PublicHolidays.vue
@@ -61,10 +61,10 @@ export default {
return '';
},
endpoint() {
- return `${`${widgetApiEndpoints.holidays}`
+ return `${widgetApiEndpoints.holidays}`
+ `&fromDate=${this.startDate}&toDate=${this.endDate}`
- + `&country=${this.country}&holidayType=${this.holidayType}`}${
- this.region}`;
+ + `&country=${this.country}&holidayType=${this.holidayType}`
+ + `${this.region}`;
},
},
methods: {