File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ defineProps<{
1212 <!-- syllabus -->
1313 <p
1414 contenteditable =" true"
15+ id =" syllabus"
1516 class =" syllabus content"
1617 v-if =" syllabus.length"
1718 v-html =" marked.parse(syllabus)"
Original file line number Diff line number Diff line change @@ -60,9 +60,14 @@ const loaderI18nPathText = {
6060 }
6161};
6262
63+ const handleDownload = () => {
64+ console .log (' downloaded' );
65+ };
66+
6367const stepToAction = {
6468 1 : handleSearch ,
65- 2 : handleCreateSyllabus
69+ 2 : handleCreateSyllabus ,
70+ 3 : handleDownload
6671};
6772
6873// button to export syllabus
@@ -97,7 +102,7 @@ const stepToAction = {
97102 </div >
98103 <div class =" actions" >
99104 <button class =" button" v-if =" step > 1" @click =" step = step - 1" >previous</button >
100- <button class =" button" v-if =" step < 3" @click =" stepToAction[step]()" >next</button >
105+ <button class =" button" v-if =" step <= 3" @click =" stepToAction[step]()" >next</button >
101106 </div >
102107 </div >
103108</template >
You can’t perform that action at this time.
0 commit comments