diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/components/Configuration/ConfigProposals.vue | 9 | ||||
-rw-r--r-- | src/js/components/Options/OptionsDateAdd.vue | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/js/components/Configuration/ConfigProposals.vue b/src/js/components/Configuration/ConfigProposals.vue index 284ba1ee..22e68234 100644 --- a/src/js/components/Configuration/ConfigProposals.vue +++ b/src/js/components/Configuration/ConfigProposals.vue @@ -95,6 +95,15 @@ export default { }, }, + firstDOW() { + // vue2-datepicker needs 7 for sunday + if (moment.localeData()._week.dow === 0) { + return 7 + } + return moment.localeData()._week.dow + + }, + expirationDatePicker() { return { editable: true, diff --git a/src/js/components/Options/OptionsDateAdd.vue b/src/js/components/Options/OptionsDateAdd.vue index 33a39d38..68d71425 100644 --- a/src/js/components/Options/OptionsDateAdd.vue +++ b/src/js/components/Options/OptionsDateAdd.vue @@ -164,6 +164,15 @@ export default { }, + firstDOW() { + // vue2-datepicker needs 7 for sunday + if (moment.localeData()._week.dow === 0) { + return 7 + } + return moment.localeData()._week.dow + + }, + pickerOptions() { return { appendToBody: true, |