Skip to content

Commit c1f9580

Browse files
feat(tutor): adds download
1 parent ab124b9 commit c1f9580

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/tutor/ThirdStep.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)"

src/views/TutorPage.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ const loaderI18nPathText = {
6060
}
6161
};
6262
63+
const handleDownload = () => {
64+
console.log('downloaded');
65+
};
66+
6367
const 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>

0 commit comments

Comments
 (0)