Skip to content
Snippets Groups Projects
Commit 3eb8cc3e authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix view and select collections for content-creation

parent 1f6b4ea1
No related merge requests found
......@@ -12,7 +12,7 @@
<input matInput #group matInput [formControl]="myControl" [matAutocomplete]="auto"
value={{lastCollection}} placeholder="{{'content.collection' | translate}}"/>
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let collection of collections" [value]="collection">
<mat-option *ngFor="let collection of contentGroups" [value]="collection.name">
{{collection.name}}
</mat-option>
</mat-autocomplete>
......
......@@ -28,7 +28,7 @@ export class ContentCreatorComponent extends RoomPageComponent implements OnInit
1,
[],
);
collections: ContentGroup[];
contentGroups: ContentGroup[];
lastCollection: string;
myControl = new FormControl();
......@@ -52,8 +52,9 @@ export class ContentCreatorComponent extends RoomPageComponent implements OnInit
getRoom(id: string): void {
this.roomService.getRoomByShortId(id).subscribe(room => {
this.collections = room.contentGroups;
this.contentGroups = room.contentGroups;
});
}
resetInputs() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment