fix: lint
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
d4f4ebb66b
commit
3b73925de5
|
@ -189,7 +189,7 @@ const props = defineProps({
|
||||||
showSelectedOnButton: {
|
showSelectedOnButton: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
// FIXME: This seems to always contain the default value - that breaks the picker
|
// FIXME: This seems to always contain the default value - that breaks the picker
|
||||||
|
|
|
@ -20,7 +20,7 @@ const props = defineProps({
|
||||||
hasOverflow: {
|
hasOverflow: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
function hidePopup(e) {
|
function hidePopup(e) {
|
||||||
|
|
|
@ -96,6 +96,8 @@ export default {
|
||||||
pageTitle() {
|
pageTitle() {
|
||||||
let title = ''
|
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])
|
const predefinedRange = Object.entries(dateRanges).find(([key, value]) => this.dateFrom === value[0] && this.dateTo === value[1])
|
||||||
if (typeof predefinedRange !== 'undefined') {
|
if (typeof predefinedRange !== 'undefined') {
|
||||||
title = this.$t(`input.datepickerRange.ranges.${predefinedRange[0]}`)
|
title = this.$t(`input.datepickerRange.ranges.${predefinedRange[0]}`)
|
||||||
|
|
Reference in New Issue