Add some FIXME-comments with reference to VBV-305
This commit is contained in:
parent
1fdabf77c0
commit
6745431f17
|
|
@ -26,6 +26,7 @@ onMounted(() => {
|
|||
log.debug("App mounted");
|
||||
|
||||
eventBus.on("switchedCourseSession", () => {
|
||||
// FIXME: clean up with VBV-305
|
||||
componentKey.value++;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import mitt from "mitt";
|
||||
|
||||
export type MittEvents = {
|
||||
// FIXME:
|
||||
// FIXME: clean up with VBV-305
|
||||
switchedCourseSession: number;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue