Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 6522193

Browse files
committed
All discussion components are in place in the project space
1 parent 8d99558 commit 6522193

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

client/app/discussion/app-thread/app-thread.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ export class AppThreadComponent {
1919
}
2020

2121
onThreadDeletion(thread: Thread): void {
22-
this.router.navigate(['/discussion']);
22+
this.router.navigate(['..'], { relativeTo: this.route });
2323
}
2424
}

client/app/project/project-thread/project-thread.component.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,10 @@ export class ProjectThreadComponent {
1515

1616
static parameters = [Router, ActivatedRoute, MessagingService];
1717
constructor(private router: Router, private route: ActivatedRoute, private messagingService: MessagingService) {
18-
this.thread$ = this.route.params.pipe(
19-
switchMap(res => {
20-
console.log('ProjectThreadComponent', res.threadId);
21-
return this.messagingService.getThread(res.threadId);
22-
})
23-
);
18+
this.thread$ = this.route.params.pipe(switchMap(res => this.messagingService.getThread(res.threadId)));
2419
}
2520

2621
onThreadDeletion(thread: Thread): void {
27-
this.router.navigate(['/discussion']);
22+
this.router.navigate(['..'], { relativeTo: this.route });
2823
}
2924
}

0 commit comments

Comments
 (0)