From ceb0bcf07cb84add6f442cb65355cd9c698fe060 Mon Sep 17 00:00:00 2001 From: DamiGbs <118913102+DamiGbs@users.noreply.github.com> Date: Thu, 7 Sep 2023 01:18:40 +0200 Subject: [PATCH] [#12551] Sessions page fix (#12561) * loading fix * error toast * Revert "error toast" * fixed formatting by reverting commit * Remove toast --- .../instructor-sessions-page.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/app/pages-instructor/instructor-sessions-page/instructor-sessions-page.component.ts b/src/web/app/pages-instructor/instructor-sessions-page/instructor-sessions-page.component.ts index 8ddd2731201..88a0bbabba3 100644 --- a/src/web/app/pages-instructor/instructor-sessions-page/instructor-sessions-page.component.ts +++ b/src/web/app/pages-instructor/instructor-sessions-page/instructor-sessions-page.component.ts @@ -504,7 +504,9 @@ export class InstructorSessionsPageComponent extends InstructorSessionModalPageC const requestList: Observable[] = this.createSessionCopyRequestsFromRowModel( this.sessionsTableRowModels[result.sessionToCopyRowIndex], result); if (requestList.length === 1) { - this.copySingleSession(requestList[0], this.modifiedTimestampsModal); + this.copySingleSession(requestList[0].pipe(finalize(() => { + this.isCopySessionLoading = false; + })), this.modifiedTimestampsModal); } if (requestList.length > 1) { forkJoin(requestList).pipe(finalize(() => {