1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-03 20:45:23 +02:00

Make first day of week in calendar view customizable (#263)

* Make first day of the week customizable

New settings section 'Locale settings'
New setting 'First day of week'
New date picker reusable UI that uses the new setting
Meal planner now uses this new date picker

* Clean up unused code in settings page

* Fix First day of week mapping

* Replace missing v-date-picker with custom card DatePicker

* Mention first day of the week feature in change log
This commit is contained in:
sephrat 2021-04-21 08:43:36 +02:00 committed by GitHub
parent 197d794ca6
commit 8e27d0b83f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 105 additions and 31 deletions

View file

@ -31,11 +31,11 @@
v-on="on"
></v-text-field>
</template>
<v-date-picker
<DatePicker
v-model="startDate"
no-title
@input="menu2 = false"
></v-date-picker>
/>
</v-menu>
</v-col>
<v-col cols="12" lg="6" md="6" sm="12">
@ -59,11 +59,11 @@
v-on="on"
></v-text-field>
</template>
<v-date-picker
<DatePicker
v-model="endDate"
no-title
@input="menu2 = false"
></v-date-picker>
/>
</v-menu>
</v-col>
</v-row>
@ -87,12 +87,14 @@
<script>
const CREATE_EVENT = "created";
import DatePicker from "../UI/DatePicker";
import { api } from "@/api";
import utils from "@/utils";
import MealPlanCard from "./MealPlanCard";
export default {
components: {
MealPlanCard,
DatePicker,
},
data() {
return {