Add some FIXME-comments with reference to VBV-305

This commit is contained in:
Daniel Egger 2023-04-05 19:28:58 +02:00
parent 1fdabf77c0
commit 6745431f17
4 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@ onMounted(() => {
log.debug("App mounted");
eventBus.on("switchedCourseSession", () => {
// FIXME: clean up with VBV-305
componentKey.value++;
});
});

View File

@ -100,6 +100,7 @@ export const useCourseSessionsStore = defineStore("courseSessions", () => {
function switchCourseSession(courseSession: CourseSession) {
log.debug("switchCourseSession", courseSession);
selectedCourseSessionMap.value.set(courseSession.course.slug, courseSession.id);
// FIXME: clean up with VBV-305
eventBus.emit("switchedCourseSession", courseSession.id);
}

View File

@ -109,6 +109,7 @@ export const useLearningPathStore = defineStore("learningPath", () => {
eventBus.on("switchedCourseSession", (courseSession) => {
log.debug("handle switchedCourseSession", courseSession);
// FIXME: clean up with VBV-305
reloadCompletionData();
});

View File

@ -1,7 +1,7 @@
import mitt from "mitt";
export type MittEvents = {
// FIXME:
// FIXME: clean up with VBV-305
switchedCourseSession: number;
};