fix: add locale and first day of week to all date pickers (#3303)

This commit is contained in:
Michael Genson
2024-03-12 17:46:34 -05:00
committed by GitHub
parent 42523bbfc9
commit 5f5b06683a
5 changed files with 54 additions and 12 deletions

View File

@@ -46,8 +46,9 @@
</template>
<v-date-picker
v-model="newMeal.date"
:first-day-of-week="firstDayOfWeek"
no-title
:first-day-of-week="firstDayOfWeek"
:local="$i18n.locale"
@input="state.pickerMenu = false"
/>
</v-menu>
@@ -256,13 +257,7 @@ export default defineComponent({
});
const firstDayOfWeek = computed(() => {
const pref = group.value?.preferences?.firstDayOfWeek;
if (pref) {
return pref;
}
return 0;
return group.value?.preferences?.firstDayOfWeek || 0;
});
function onMoveCallback(evt: SortableEvent) {