In this lesson, we update our UI to show chapter and course completion as a percentage.
First, we do some calculations in our Pinia store in order to get the right data. We put this in a computed to ensure it’s always up-to-date as we toggle completion for lessons.
Second, we update our course.vue page to display this data. We make this conditional on a user being logged in — otherwise we don’t have any data to show!
18 lessons
7 lessons
7 lessons
11 lessons
18 lessons
8 lessons
17 lessons