feat(backend): SingleTheme-pagina geïmplementeerd
This commit is contained in:
parent
a33ec6c452
commit
34f980d690
7 changed files with 137 additions and 49 deletions
|
@ -1,6 +1,4 @@
|
|||
import type {Language} from "@/data-objects/language.ts";
|
||||
import type {LearningObject} from "@/data-objects/learning-object.ts";
|
||||
import {getLearningObjectMetadata} from "@/services/learning-content/learning-object-service.ts";
|
||||
|
||||
export interface LearningPathDTO {
|
||||
language: string;
|
||||
|
@ -54,10 +52,6 @@ export class LearningPathNode {
|
|||
) {
|
||||
}
|
||||
|
||||
get learningObject(): Promise<LearningObject> {
|
||||
return getLearningObjectMetadata(this.learningobjectHruid, this.language, this.version);
|
||||
}
|
||||
|
||||
static fromDTOAndOtherNodes(dto: LearningPathNodeDTO, otherNodes: LearningPathNodeDTO[]): LearningPathNode {
|
||||
return new LearningPathNode(
|
||||
dto.learningobject_hruid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue