From 71352888007e69b92b9d00f38bc9fca0d77d6a2c Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 9 Jan 2022 17:28:58 +0100 Subject: [PATCH] fix: lint --- src/components/date/datepickerWithRange.vue | 2 +- src/components/misc/popup.vue | 2 +- src/views/tasks/ShowTasks.vue | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/date/datepickerWithRange.vue b/src/components/date/datepickerWithRange.vue index d06cd2e2..b160435f 100644 --- a/src/components/date/datepickerWithRange.vue +++ b/src/components/date/datepickerWithRange.vue @@ -191,7 +191,7 @@ const props = defineProps({ showSelectedOnButton: { type: Boolean, default: false, - } + }, }) // FIXME: This seems to always contain the default value - that breaks the picker diff --git a/src/components/misc/popup.vue b/src/components/misc/popup.vue index f3815781..9713cff2 100644 --- a/src/components/misc/popup.vue +++ b/src/components/misc/popup.vue @@ -20,7 +20,7 @@ const props = defineProps({ hasOverflow: { type: Boolean, default: false, - } + }, }) function hidePopup(e) { diff --git a/src/views/tasks/ShowTasks.vue b/src/views/tasks/ShowTasks.vue index ef0d6aeb..a7743e30 100644 --- a/src/views/tasks/ShowTasks.vue +++ b/src/views/tasks/ShowTasks.vue @@ -98,6 +98,8 @@ export default { pageTitle() { let title = '' + // We need to define "key" because it is the first parameter in the array and we need the second + // eslint-disable-next-line no-unused-vars const predefinedRange = Object.entries(dateRanges).find(([key, value]) => this.dateFrom === value[0] && this.dateTo === value[1]) if (typeof predefinedRange !== 'undefined') { title = this.$t(`input.datepickerRange.ranges.${predefinedRange[0]}`)