mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-04 19:23:56 -05:00
31 lines
481 B
Vue
31 lines
481 B
Vue
|
|
<template>
|
||
|
|
<v-date-picker
|
||
|
|
:first-day-of-week="firstDayOfWeek"
|
||
|
|
v-on="$listeners"
|
||
|
|
></v-date-picker>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import { api } from "@/api";
|
||
|
|
|
||
|
|
export default {
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
firstDayOfWeek: 0,
|
||
|
|
};
|
||
|
|
},
|
||
|
|
mounted() {
|
||
|
|
this.getOptions();
|
||
|
|
},
|
||
|
|
|
||
|
|
methods: {
|
||
|
|
async getOptions() {
|
||
|
|
const settings = await api.siteSettings.get();
|
||
|
|
this.firstDayOfWeek = settings.firstDayOfWeek;
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
</style>
|