1
0

Add setting for the first day of the week

This commit is contained in:
kolaente
2021-06-03 18:12:40 +02:00
parent 641ccd1026
commit e37145cd43
9 changed files with 87 additions and 49 deletions

View File

@ -81,14 +81,6 @@ export default {
cEndDate: null,
showNothingToDo: false,
flatPickerConfig: {
altFormat: 'j M Y H:i',
altInput: true,
dateFormat: 'Y-m-d H:i',
enableTime: true,
time_24hr: true,
},
}
},
props: {
@ -116,6 +108,16 @@ export default {
},
computed: mapState({
userAuthenticated: state => state.auth.authenticated,
flatPickerConfig: state => ({
altFormat: 'j M Y H:i',
altInput: true,
dateFormat: 'Y-m-d H:i',
enableTime: true,
time_24hr: true,
locale: {
firstDayOfWeek: state.auth.settings.weekStart,
},
})
}),
methods: {
setDate() {