From 5b4af40948c373e175d1a73ad7051839a36c0f0d Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Fri, 4 Aug 2023 12:10:43 +0200 Subject: [PATCH] Tweaks to timing mismatch modals --- amd/src/studyplan-editor-components.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/amd/src/studyplan-editor-components.js b/amd/src/studyplan-editor-components.js index 3e52601..e6c3136 100644 --- a/amd/src/studyplan-editor-components.js +++ b/amd/src/studyplan-editor-components.js @@ -168,7 +168,7 @@ export default { days: 'days$core', day: 'day$core', rememberchoice: 'course_timing_rememberchoice', - hidewarning: 'course_timing_hidewarning,' + hidewarning: 'course_timing_hidewarning', }, studyplan_associate: { associations: 'associations', @@ -1455,7 +1455,7 @@ export default { for(let i = 0; i < periods; i++){ if(line.slots[index-i] && 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]; if(item.layer == layeridx){ if(forGradable){ @@ -2184,7 +2184,9 @@ export default { :title="text.title" @ok="change_course_period" :ok-title="text.yes" - cancel-disabled + ok-variant="danger" + :cancel-title="text.no" + cancel-variant="primary" > {{ text.desc }} @@ -2215,11 +2217,10 @@ export default { {{ text.desc }}