Weekday always starts on monday in date picker.

This commit is contained in:
PMKuipers 2023-09-03 16:56:11 +02:00
parent 7431943747
commit 641356be31
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -754,13 +754,13 @@ export default {
<b-row> <b-row>
<b-col cols="4">{{ text.studyplan_startdate}}</b-col> <b-col cols="4">{{ text.studyplan_startdate}}</b-col>
<b-col cols="8"> <b-col cols="8">
<b-form-datepicker v-model="editdata.startdate"></b-form-datepicker> <b-form-datepicker start-weekday="1" v-model="editdata.startdate"></b-form-datepicker>
</b-col> </b-col>
</b-row> </b-row>
<b-row> <b-row>
<b-col cols="4">{{ text.studyplan_enddate}}</b-col> <b-col cols="4">{{ text.studyplan_enddate}}</b-col>
<b-col cols="8"> <b-col cols="8">
<b-form-datepicker v-model="editdata.enddate" ></b-form-datepicker> <b-form-datepicker start-weekday="1" v-model="editdata.enddate" ></b-form-datepicker>
</b-col> </b-col>
</b-row> </b-row>
<b-row> <b-row>
@ -1257,6 +1257,7 @@ export default {
<b-col cols="4">{{ text.studyplan_startdate}}</b-col> <b-col cols="4">{{ text.studyplan_startdate}}</b-col>
<b-col cols="8"> <b-col cols="8">
<b-form-datepicker <b-form-datepicker
start-weekday="1"
v-model="editdata.startdate" v-model="editdata.startdate"
:min="(minstart ? minstart : '')" :min="(minstart ? minstart : '')"
:max="sub_day(value.enddate)" :max="sub_day(value.enddate)"
@ -1267,6 +1268,7 @@ export default {
<b-col cols="4">{{ text.studyplan_enddate}}</b-col> <b-col cols="4">{{ text.studyplan_enddate}}</b-col>
<b-col cols="8"> <b-col cols="8">
<b-form-datepicker <b-form-datepicker
start-weekday="1"
v-model="editdata.enddate" v-model="editdata.enddate"
:min="add_day(value.startdate)" :min="add_day(value.startdate)"
:max="(maxend ? maxend : '')" :max="(maxend ? maxend : '')"