From 88db35d6e4776f7fd44846a4cc3f8d757d23d5f0 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Mon, 2 Dec 2024 14:13:20 +0100 Subject: [PATCH] feat: Auto-connect to provisioned sessions --- .../create-provisioned-session.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/sessions/user-sessions-wrapper/create-sessions/create-provisioned-session/create-provisioned-session.component.ts b/frontend/src/app/sessions/user-sessions-wrapper/create-sessions/create-provisioned-session/create-provisioned-session.component.ts index ead4d2cb7..32fd69e07 100644 --- a/frontend/src/app/sessions/user-sessions-wrapper/create-sessions/create-provisioned-session/create-provisioned-session.component.ts +++ b/frontend/src/app/sessions/user-sessions-wrapper/create-sessions/create-provisioned-session/create-provisioned-session.component.ts @@ -165,9 +165,11 @@ export class CreateProvisionedSessionComponent implements OnInit { ); } combineLatest(requests).subscribe({ - next: () => { + next: (sessions) => { this.provisioningRequestInProgress = false; - this.router.navigateByUrl('/'); + this.router.navigate(['/session-viewer'], { + queryParams: { 'session-id': sessions.map((s) => s.id) }, + }); }, error: () => { this.provisioningRequestInProgress = false;