Tweaks to timing mismatch modals

This commit is contained in:
PMKuipers 2023-08-04 12:10:43 +02:00
parent 235972e2f4
commit 5b4af40948

View file

@ -168,7 +168,7 @@ export default {
days: 'days$core', days: 'days$core',
day: 'day$core', day: 'day$core',
rememberchoice: 'course_timing_rememberchoice', rememberchoice: 'course_timing_rememberchoice',
hidewarning: 'course_timing_hidewarning,' hidewarning: 'course_timing_hidewarning',
}, },
studyplan_associate: { studyplan_associate: {
associations: 'associations', associations: 'associations',
@ -1455,7 +1455,7 @@ export default {
for(let i = 0; i < periods; i++){ for(let i = 0; i < periods; i++){
if(line.slots[index-i] && line.slots[index-i].competencies){ if(line.slots[index-i] && line.slots[index-i].competencies){
const list = line.slots[index-i].competencies; const list = line.slots[index-i].competencies;
for(const ix in list){ // Really wish that for ( .. of .. ) would work with the minifier for(const ix in list){ // Really wish that 'for of' would work with the minifier moodle uses
const item = list[ix]; const item = list[ix];
if(item.layer == layeridx){ if(item.layer == layeridx){
if(forGradable){ if(forGradable){
@ -2184,7 +2184,9 @@ export default {
:title="text.title" :title="text.title"
@ok="change_course_period" @ok="change_course_period"
:ok-title="text.yes" :ok-title="text.yes"
cancel-disabled ok-variant="danger"
:cancel-title="text.no"
cancel-variant="primary"
> >
<b-container v-if="datechanger.coursespan && datechanger.periodspan && item && item.course"> <b-container v-if="datechanger.coursespan && datechanger.periodspan && item && item.course">
<b-row><b-col cols="12">{{ text.desc }}</b-col></b-row> <b-row><b-col cols="12">{{ text.desc }}</b-col></b-row>
@ -2215,11 +2217,10 @@ export default {
<b-modal <b-modal
:id="'t-course-date-warning-'+this.slotkey" :id="'t-course-date-warning-'+this.slotkey"
size="lg" size="lg"
ok-variant="danger" ok-variant="primary"
:title="text.title" :title="text.title"
:ok-title="text.yes" :ok-title="text.yes"
:cancel-title="text.no" ok-only
cancel-variant="primary"
> >
<b-container v-if="datechanger.coursespan && datechanger.periodspan && item && item.course"> <b-container v-if="datechanger.coursespan && datechanger.periodspan && item && item.course">
<b-row><b-col cols="12">{{ text.desc }}</b-col></b-row> <b-row><b-col cols="12">{{ text.desc }}</b-col></b-row>