diff --git a/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.html b/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.html
index 1051ef28b..7ef80f4a1 100644
--- a/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.html
+++ b/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.html
@@ -1 +1,5 @@
-
group-detail works!
+
+
+
diff --git a/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.scss b/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.scss
index e69de29bb..cd64f722a 100644
--- a/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.scss
+++ b/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.scss
@@ -0,0 +1,9 @@
+@import "../../../colors";
+
+.group-details {
+ .mat-icon {
+ color: $cPrimary;
+ margin-top: 100px;
+ transform: scale(10);
+ }
+}
diff --git a/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.ts b/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.ts
index 86679f71b..4dcc186dd 100644
--- a/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.ts
+++ b/modules/fbs-core/web/src/app/page-components/group-detail/group-detail.component.ts
@@ -1,4 +1,9 @@
import { Component, OnInit } from "@angular/core";
+import { Observable, of } from "rxjs";
+import { Group } from "../../model/group";
+import { GroupService } from "../../service/group.service";
+import { ActivatedRoute } from "@angular/router";
+import { TitlebarService } from "../../service/titlebar.service";
@Component({
selector: "app-group-detail",
@@ -6,7 +11,31 @@ import { Component, OnInit } from "@angular/core";
styleUrls: ["./group-detail.component.scss"],
})
export class GroupDetailComponent implements OnInit {
- constructor() {}
+ constructor(
+ private groupService: GroupService,
+ private route: ActivatedRoute,
+ private titlebar: TitlebarService
+ ) {}
+ courseID: number;
+ groupID: number;
+ group$: Observable = of();
- ngOnInit(): void {}
+ ngOnInit(): void {
+ this.route.params.subscribe((param) => {
+ this.courseID = param.courseId;
+ this.groupID = param.id;
+ this.loadGroup();
+ });
+ }
+
+ loadGroup(): void {
+ this.group$ = this.groupService.getGroup(this.courseID, this.groupID);
+ this.group$.subscribe((group) => {
+ this.titlebar.emitTitle(group.name);
+ });
+ }
+
+ navigateToKanban() {
+ window.location.href = "http://localhost:3000/";
+ }
}